update publish job
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
qpismont 2024-05-27 19:01:57 +02:00
parent 2fcced408b
commit fc1daad94b
2 changed files with 6 additions and 8 deletions

View file

@ -1,16 +1,15 @@
when:
- event: [tag]
steps:
publish-docker:
image: docker:cli
image: docker:26-cli
commands:
- version=$(cat version)
- tag="gitea.qpismont.fr/qpismont/portfolio:$version"
- docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}"
- 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
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event: push
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets: [docker_username, docker_password]

View file

@ -1 +0,0 @@
1.1