33 lines
910 B
YAML
33 lines
910 B
YAML
pipeline:
|
|
# build-only:
|
|
# image: woodpeckerci/plugin-docker-buildx
|
|
# settings:
|
|
# username:
|
|
# from_secret: harbor_username
|
|
# password:
|
|
# from_secret: harbor_password
|
|
# repo: harbor.sebclem.fr/sebclem/${CI_REPO_NAME}
|
|
# cache_from: harbor.sebclem.fr/sebclem/${CI_REPO_NAME}
|
|
# registry: harbor.sebclem.fr
|
|
# dry_run: true
|
|
# when:
|
|
# event: [push, pull_request, manual]
|
|
|
|
build-and-push:
|
|
image: woodpeckerci/plugin-docker-buildx:2.0
|
|
settings:
|
|
tags: latest
|
|
tag: latest
|
|
platforms: linux/amd64
|
|
username:
|
|
from_secret: harbor_username
|
|
password:
|
|
from_secret: harbor_password
|
|
repo: harbor.sebclem.fr/sebclem/${CI_REPO_NAME}
|
|
cache_from: harbor.sebclem.fr/sebclem/${CI_REPO_NAME}
|
|
registry: harbor.sebclem.fr
|
|
|
|
# when:
|
|
# environment: production
|
|
# event: deployment
|