This commit is contained in:
parent
82cd91641e
commit
2ecafbe733
|
@ -1,15 +1,15 @@
|
||||||
steps:
|
steps:
|
||||||
"Install dependencies":
|
"Test docker build":
|
||||||
image: deblan/php:8.3
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
commands:
|
settings:
|
||||||
- composer install
|
repo: gitnet.fr/deblan/woodpecker-email
|
||||||
when:
|
dry-run: true
|
||||||
event: [push]
|
|
||||||
|
|
||||||
"Docker build and push":
|
"Docker build and push":
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
repo: gitnet.fr/deblan/woodpecker-email,deblan/woodpecker-email
|
repo: gitnet.fr/deblan/woodpecker-email,deblan/woodpecker-email
|
||||||
|
tags: ${CI_COMMIT_TAG=latest}
|
||||||
logins:
|
logins:
|
||||||
- registry: https://gitnet.fr
|
- registry: https://gitnet.fr
|
||||||
username:
|
username:
|
||||||
|
@ -21,48 +21,7 @@ steps:
|
||||||
from_secret: registry_user
|
from_secret: registry_user
|
||||||
password:
|
password:
|
||||||
from_secret: registry_docker_password
|
from_secret: registry_docker_password
|
||||||
tags: test
|
when:
|
||||||
# when:
|
- branch: [master]
|
||||||
# branch: [master]
|
event: [push]
|
||||||
# event: [push]
|
- event: [tag]
|
||||||
|
|
||||||
# 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:
|
|
||||||
# from_secret: registry_user
|
|
||||||
# password:
|
|
||||||
# from_secret: registry_docker_password
|
|
||||||
# when:
|
|
||||||
# branch: [master]
|
|
||||||
# event: [push]
|
|
||||||
#
|
|
||||||
# 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