34 lines
951 B
YAML
34 lines
951 B
YAML
|
pipeline:
|
||
|
build-only:
|
||
|
image: woodpeckerci/plugin-docker-buildx
|
||
|
settings:
|
||
|
repo: harbor.sebclem.fr/sebclem/${CI_REPO_NAME}
|
||
|
cache_from: harbor.sebclem.fr/sebclem/${CI_REPO_NAME}
|
||
|
registry: harbor.sebclem.fr
|
||
|
dry_run: true
|
||
|
logins:
|
||
|
- registry: https://harbor.sebclem.fr
|
||
|
username:
|
||
|
from_secret: harbor_user
|
||
|
password:
|
||
|
from_secret: harbor_token
|
||
|
when:
|
||
|
event: [push, pull_request, manual]
|
||
|
|
||
|
publish:
|
||
|
image: woodpeckerci/plugin-docker-buildx
|
||
|
settings:
|
||
|
platforms: linux/amd64
|
||
|
tag: latest
|
||
|
repo: harbor.sebclem.fr/sebclem/${CI_REPO_NAME}
|
||
|
cache_from: harbor.sebclem.fr/sebclem/${CI_REPO_NAME}
|
||
|
logins:
|
||
|
- registry: https://harbor.sebclem.fr
|
||
|
username:
|
||
|
from_secret: harbor_user
|
||
|
password:
|
||
|
from_secret: harbor_token
|
||
|
when:
|
||
|
environment: production
|
||
|
event: deployment
|