This commit is contained in:
parent
6b5cfcadb0
commit
8428a26fa5
1 changed files with 4 additions and 2 deletions
|
@ -3,9 +3,11 @@ steps:
|
|||
image: docker:cli
|
||||
commands:
|
||||
- version=$(cat version)
|
||||
- tag="gitea.qpismont.fr/qpismont/portfolio:${version}"
|
||||
- docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}"
|
||||
- docker build . --tag gitea.qpismont.fr/qpismont/portfolio:$version
|
||||
- docker push gitea.qpismont.fr/qpismont/portfolio:$version
|
||||
- docker build --rm --tag $tag .
|
||||
- docker push $tag
|
||||
- docker rmi $tag
|
||||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event: push
|
||||
|
|
Loading…
Reference in a new issue