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

View file

@ -1 +0,0 @@
1.1