Compare commits
5 commits
6c3f5a6de5
...
492af8a391
Author | SHA1 | Date | |
---|---|---|---|
Simon Vieille | 492af8a391 | ||
Simon Vieille | b371b48625 | ||
Simon Vieille | 2ecafbe733 | ||
Simon Vieille | 82cd91641e | ||
Simon Vieille | be806166b4 |
|
@ -1,63 +1,27 @@
|
||||||
steps:
|
steps:
|
||||||
dep:
|
"Test docker build":
|
||||||
image: deblan/php:8.2
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
commands:
|
|
||||||
- composer install
|
|
||||||
when:
|
|
||||||
event: [push]
|
|
||||||
|
|
||||||
build_push_latest_gitnet:
|
|
||||||
image: plugins/docker
|
|
||||||
secrets: [registry_user, registry_password]
|
|
||||||
settings:
|
settings:
|
||||||
registry: gitnet.fr
|
repo: gitnet.fr/deblan/woodpecker-email
|
||||||
repo: gitnet.fr/${CI_REPO}
|
dry-run: true
|
||||||
tags: latest
|
|
||||||
|
"Docker build and push":
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
repo: gitnet.fr/deblan/woodpecker-email,deblan/woodpecker-email
|
||||||
|
tags: ${CI_COMMIT_TAG=latest}
|
||||||
|
logins:
|
||||||
|
- registry: https://gitnet.fr
|
||||||
username:
|
username:
|
||||||
from_secret: registry_user
|
from_secret: registry_user
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
when:
|
- registry: https://index.docker.io/v1/
|
||||||
branch: [master]
|
|
||||||
event: [push]
|
|
||||||
|
|
||||||
build_push_tag_gitnet:
|
|
||||||
image: plugins/docker
|
|
||||||
secrets: [registry_user, registry_password]
|
|
||||||
settings:
|
|
||||||
registry: gitnet.fr
|
|
||||||
repo: gitnet.fr/${CI_REPO}
|
|
||||||
tags: ${CI_COMMIT_TAG}
|
|
||||||
username:
|
|
||||||
from_secret: registry_user
|
|
||||||
password:
|
|
||||||
from_secret: registry_password
|
|
||||||
when:
|
|
||||||
event: [tag]
|
|
||||||
|
|
||||||
build_push_latest_dhub:
|
|
||||||
image: plugins/docker
|
|
||||||
secrets: [registry_user, registry_docker_password]
|
|
||||||
settings:
|
|
||||||
repo: ${CI_REPO}
|
|
||||||
tags: latest
|
|
||||||
username:
|
username:
|
||||||
from_secret: registry_user
|
from_secret: registry_user
|
||||||
password:
|
password:
|
||||||
from_secret: registry_docker_password
|
from_secret: registry_docker_password
|
||||||
when:
|
when:
|
||||||
branch: [master]
|
- branch: [master]
|
||||||
event: [push]
|
event: [push]
|
||||||
|
- event: [tag]
|
||||||
build_push_tag_dhub:
|
|
||||||
image: plugins/docker
|
|
||||||
secrets: [registry_user, registry_docker_password]
|
|
||||||
settings:
|
|
||||||
repo: ${CI_REPO}
|
|
||||||
tags: ${CI_COMMIT_TAG}
|
|
||||||
username:
|
|
||||||
from_secret: registry_user
|
|
||||||
password:
|
|
||||||
from_secret: registry_docker_password
|
|
||||||
when:
|
|
||||||
event: [tag]
|
|
||||||
|
|
Loading…
Reference in a new issue