portfolio/.woodpecker.yml

16 lines
509 B
YAML
Raw Normal View History

2023-08-10 20:19:11 +02:00
steps:
publish-docker:
2023-08-10 21:08:44 +02:00
image: docker:cli
commands:
2023-08-10 21:19:40 +02:00
- version=$(cat version)
2023-08-10 21:41:20 +02:00
- tag="gitea.qpismont.fr/qpismont/portfolio:$version"
2023-08-10 21:09:44 +02:00
- docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}"
2023-08-10 21:40:17 +02:00
- docker build --rm --tag $tag .
- docker push $tag
- docker rmi $tag
2023-08-10 20:19:11 +02:00
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
2023-08-10 21:08:44 +02:00
event: push
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets: [docker_username, docker_password]