portfolio/.woodpecker.yml
qpismont 0dcf2d11b3
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
fix repository name
2024-05-27 19:07:43 +02:00

15 lines
No EOL
410 B
YAML

when:
- event: [tag]
steps:
publish-docker:
image: docker:26-cli
commands:
- tag="tintounn/portfolio:$${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]