portfolio/.woodpecker.yml
2023-08-10 21:19:40 +02:00

14 lines
No EOL
505 B
YAML

steps:
publish-docker:
image: docker:cli
commands:
- version=$(cat version)
- docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}"
- docker build . --tag gitea.qpismont.fr/qpismont/portfolio:${version}
- docker push gitea.qpismont.fr/qpismont/portfolio:${version}
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event: push
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets: [docker_username, docker_password]