mirror of
https://codeberg.org/scip/kleingebaeck.git
synced 2025-12-16 20:11:01 +01:00
33 lines
825 B
YAML
33 lines
825 B
YAML
# https://woodpecker-ci.org/plugins/docker-buildx
|
|
# enable Package unit and go to /scip/-/packages after building to link to proj
|
|
|
|
variables:
|
|
- &repo codeberg.org/${CI_REPO_OWNER}/kleingebaeck
|
|
|
|
steps:
|
|
dryrun:
|
|
image: docker.io/woodpeckerci/plugin-docker-buildx:latest
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
platforms: linux/amd64
|
|
dry_run: true
|
|
repo: *repo
|
|
tags: latest
|
|
when:
|
|
event: [pull_request]
|
|
|
|
publish:
|
|
image: docker.io/woodpeckerci/plugin-docker-buildx:latest
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
platforms: linux/amd64
|
|
repo: *repo
|
|
registry: codeberg.org
|
|
tags: latest,${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG}
|
|
username: ${CI_REPO_OWNER}
|
|
password:
|
|
from_secret: REGISTRY_TOKEN
|
|
when:
|
|
event: [tag]
|
|
branch: main
|