clean ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Quentin Pismont 2023-08-10 21:40:17 +02:00
parent 6b5cfcadb0
commit 8428a26fa5

View file

@ -3,9 +3,11 @@ steps:
image: docker:cli image: docker:cli
commands: commands:
- version=$(cat version) - version=$(cat version)
- tag="gitea.qpismont.fr/qpismont/portfolio:${version}"
- docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}" - docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}"
- docker build . --tag gitea.qpismont.fr/qpismont/portfolio:$version - docker build --rm --tag $tag .
- docker push gitea.qpismont.fr/qpismont/portfolio:$version - docker push $tag
- docker rmi $tag
when: when:
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
event: push event: push