This commit is contained in:
parent
2fcced408b
commit
fc1daad94b
2 changed files with 6 additions and 8 deletions
|
@ -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]
|
1
version
1
version
|
@ -1 +0,0 @@
|
|||
1.1
|
Loading…
Reference in a new issue