portfolio/.woodpecker.yml
qpismont fc1daad94b
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
update publish job
2024-05-27 19:01:57 +02:00

15 lines
No EOL
406 B
YAML

when:
- event: [tag]
steps:
publish-docker:
image: docker:26-cli
commands:
- tag="tintounn/trepa:$${CI_COMMIT_TAG}"
- docker login -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}"
- docker build --rm --tag $tag .
- docker push $tag
- docker rmi $tag
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets: [docker_username, docker_password]