This commit is contained in:
parent
18a301d5e5
commit
a68ac83905
1 changed files with 9 additions and 10 deletions
|
@ -1,14 +1,13 @@
|
||||||
steps:
|
steps:
|
||||||
publish-docker:
|
publish-docker:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: docker:cli
|
||||||
settings:
|
commands:
|
||||||
label: gitea.qpismont.fr/qpismont/portfolio
|
- docker login gitea.qpismont.fr -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
|
||||||
repo: gitea.qpismont.fr/qpismont/portfolio
|
- docker build . --tag gitea.qpismont.fr/qpismont/portfolio:latest
|
||||||
tag: latest
|
- docker push gitea.qpismont.fr/qpismont/portfolio:latest
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
when:
|
when:
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
event: push
|
event: push
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
secrets: [docker_username, docker_password]
|
Loading…
Reference in a new issue