add ci configration
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2022-12-07 15:19:11 +01:00
parent 7db7389558
commit 239fef9f39
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -1,24 +1,26 @@
pipeline:
build_commit:
image: docker:stable
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker build
--tag gitnet.fr/$CI_REPO:$CI_COMMIT_SHA
.
- docker push gitnet.fr/$CI_REPO:$CI_COMMIT_SHA
image: plugins/docker
secrets: [registry_user, registry_password]
settings:
username:
from_secret: registry_user
password:
from_secret: registry_password
repo: gitnet.fr/$CI_REPO
tags: $CI_COMMIT_SHA
when:
event: [push]
build_tag:
image: docker:stable
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker build
--tag gitnet.fr/$CI_REPO:$CI_COMMIT_TAG
.
- docker push gitnet.fr/$CI_REPO:$CI_COMMIT_TAG
image: plugins/docker
secrets: [registry_user, registry_password]
settings:
username:
from_secret: registry_user
password:
from_secret: registry_password
repo: gitnet.fr/$CI_REPO
tags: $CI_COMMIT_TAG
when:
event: [tag]