From 45eb0db4b273e22bac85409b14410ff767288d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=BClow?= Date: Thu, 3 Aug 2023 14:50:28 +0200 Subject: [PATCH] switched out .woodpecker.yml --- .woodpecker.yml | 26 +++++++++++++++----------- woodpecker.yml.bak | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 11 deletions(-) create mode 100644 woodpecker.yml.bak diff --git a/.woodpecker.yml b/.woodpecker.yml index b89df4b..757e1dd 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,39 +1,43 @@ # Build and publish Docker images for multible architectures. +# +# Pushing an image to codeberg as container registry, +# package owner will be the repo owner. +# +# this config also shows usage of yaml aliases and +# was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml when: branch: main variables: - - &file Dockerfile - - &repo git.jmbit.de/jmbit/docker-hugo + - &file Dockerfile.hello + - &repo git.jmbit.de/${CI_REPO_OWNER}/docker-hugo steps: - dryrun: + dryrun: image: woodpeckerci/plugin-docker-buildx settings: dockerfile: *file - platforms: linux/arm64/v8,linux/amd64 + platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le dry_run: true repo: *repo tags: latest when: event: pull_request path: *file + publish: image: woodpeckerci/plugin-docker-buildx settings: dockerfile: *file - platforms: linux/arm64/v8,linux/amd64 + platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le repo: *repo registry: git.jmbit.de - tags: - - latest - - ${CI_COMMIT_SHA} - username: jmbitci + tags: latest + username: ${CI_REPO_OWNER} password: - from_secret: dockerhub_token + from_secret: forgejo_token when: event: push path: *file - diff --git a/woodpecker.yml.bak b/woodpecker.yml.bak new file mode 100644 index 0000000..b89df4b --- /dev/null +++ b/woodpecker.yml.bak @@ -0,0 +1,39 @@ +# Build and publish Docker images for multible architectures. + +when: + branch: main + +variables: + - &file Dockerfile + - &repo git.jmbit.de/jmbit/docker-hugo + +steps: + dryrun: + image: woodpeckerci/plugin-docker-buildx + settings: + dockerfile: *file + platforms: linux/arm64/v8,linux/amd64 + dry_run: true + repo: *repo + tags: latest + when: + event: pull_request + path: *file + publish: + image: woodpeckerci/plugin-docker-buildx + settings: + dockerfile: *file + platforms: linux/arm64/v8,linux/amd64 + repo: *repo + registry: git.jmbit.de + tags: + - latest + - ${CI_COMMIT_SHA} + username: jmbitci + password: + from_secret: dockerhub_token + when: + event: push + path: *file + +