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: pipeline:
build_commit: build_commit:
image: docker:stable image: plugins/docker
volumes: secrets: [registry_user, registry_password]
- /var/run/docker.sock:/var/run/docker.sock settings:
commands: username:
- docker build from_secret: registry_user
--tag gitnet.fr/$CI_REPO:$CI_COMMIT_SHA password:
. from_secret: registry_password
- docker push gitnet.fr/$CI_REPO:$CI_COMMIT_SHA repo: gitnet.fr/$CI_REPO
tags: $CI_COMMIT_SHA
when: when:
event: [push] event: [push]
build_tag: build_tag:
image: docker:stable image: plugins/docker
volumes: secrets: [registry_user, registry_password]
- /var/run/docker.sock:/var/run/docker.sock settings:
commands: username:
- docker build from_secret: registry_user
--tag gitnet.fr/$CI_REPO:$CI_COMMIT_TAG password:
. from_secret: registry_password
- docker push gitnet.fr/$CI_REPO:$CI_COMMIT_TAG repo: gitnet.fr/$CI_REPO
tags: $CI_COMMIT_TAG
when: when:
event: [tag] event: [tag]