From 473615082ca3e3830cf77545710323ce7f6aefd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=BClow?= Date: Thu, 3 Aug 2023 13:22:24 +0200 Subject: [PATCH] first commit --- .woodpecker.yml | 32 ++++++++++++++++++++++++++++++++ Dockerfile | 3 +++ 2 files changed, 35 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 Dockerfile diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..8fa39dc --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,32 @@ +# Build and publish Docker images for multible architectures. +# +# Pushing an image to forgejo 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 + +steps: + 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 + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c3e5e12 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM opensuse/tumbleweed +RUN zypper in -yn hugo hugo-bash-completion +CMD ["hugo"]