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:
|
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]
|
1
version
1
version
|
@ -1 +0,0 @@
|
||||||
1.1
|
|
Loading…
Reference in a new issue