switched out .woodpecker.yml
ci/woodpecker/push/woodpecker Pipeline was successful Details

main
Johannes Bülow 2023-08-03 14:50:28 +02:00
parent c36ffbaa97
commit 45eb0db4b2
Signed by untrusted user who does not match committer: jmb
GPG Key ID: B56971CF7B8F83A6
2 changed files with 54 additions and 11 deletions

View File

@ -1,39 +1,43 @@
# Build and publish Docker images for multible architectures. # 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: when:
branch: main branch: main
variables: variables:
- &file Dockerfile - &file Dockerfile.hello
- &repo git.jmbit.de/jmbit/docker-hugo - &repo git.jmbit.de/${CI_REPO_OWNER}/docker-hugo
steps: steps:
dryrun: dryrun:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
settings: settings:
dockerfile: *file dockerfile: *file
platforms: linux/arm64/v8,linux/amd64 platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le
dry_run: true dry_run: true
repo: *repo repo: *repo
tags: latest tags: latest
when: when:
event: pull_request event: pull_request
path: *file path: *file
publish: publish:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
settings: settings:
dockerfile: *file dockerfile: *file
platforms: linux/arm64/v8,linux/amd64 platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le
repo: *repo repo: *repo
registry: git.jmbit.de registry: git.jmbit.de
tags: tags: latest
- latest username: ${CI_REPO_OWNER}
- ${CI_COMMIT_SHA}
username: jmbitci
password: password:
from_secret: dockerhub_token from_secret: forgejo_token
when: when:
event: push event: push
path: *file path: *file

39
woodpecker.yml.bak Normal file
View File

@ -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