From f629de8a7e531dd74ed42d68c8fcb467424800cc Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 11 Nov 2023 04:51:53 +0100 Subject: [PATCH] feat: initial commit --- .woodpecker.yml | 32 ++++++++++++++++++++++++++++++++ README.md | 5 +++++ builder.Dockerfile | 3 +++ kaniko.Dockerfile | 2 ++ 4 files changed, 42 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 README.md create mode 100644 builder.Dockerfile create mode 100644 kaniko.Dockerfile diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..1a8bed2 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,32 @@ +--- + +steps: + + kaniko: + image: git.kabelsalat.ch/s3lph/package-pipeline-builder/kaniko:latest + pull: true + commands: + - mkdir -p /kaniko/.docker + - - echo "{\"auths\":{\"git.kabelsalat.ch\":{\"auth\":\""$(printf "%s:%s" "$${GITEA_API_USERNAME}" "$${GITEA_API_PASSWORD}" | base64 | tr -d '\n')"\"}}}" > /kaniko/.docker/config.json + - >- + /kaniko/executor + --dockerfile kaniko.Dockerfile + --destination git.kabelsalat.ch/s3lph/package-pipeline-builder/kaniko:latest + when: + - event: cron + - event: push + + builder: + image: git.kabelsalat.ch/s3lph/package-pipeline-builder/kaniko:latest + pull: true + commands: + - mkdir -p /kaniko/.docker + - - echo "{\"auths\":{\"git.kabelsalat.ch\":{\"auth\":\""$(printf "%s:%s" "$${GITEA_API_USERNAME}" "$${GITEA_API_PASSWORD}" | base64 | tr -d '\n')"\"}}}" > /kaniko/.docker/config.json + - >- + /kaniko/executor + --dockerfile builder.Dockerfile + --destination git.kabelsalat.ch/s3lph/package-pipeline-builder/builder:latest + when: + - event: cron + - event: push + diff --git a/README.md b/README.md new file mode 100644 index 0000000..a962172 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# package-pipeline-builder + +[![status-badge](https://woodpecker.kabelsalat.ch/api/badges/86/status.svg)](https://woodpecker.kabelsalat.ch/repos/86) + +Pipeline that builds the build images for https://git.kabelsalat.ch/s3lph/package-pipeline diff --git a/builder.Dockerfile b/builder.Dockerfile new file mode 100644 index 0000000..73cc26c --- /dev/null +++ b/builder.Dockerfile @@ -0,0 +1,3 @@ +FROM debian:bookworm + +RUN apt update && apt install --yes wget curl jq yq zip xz-utils bzip2 reprepro rsync git openssh-client unzip gnupg2 python3-pip python3-setuptools fakeroot lintian diff --git a/kaniko.Dockerfile b/kaniko.Dockerfile new file mode 100644 index 0000000..6905905 --- /dev/null +++ b/kaniko.Dockerfile @@ -0,0 +1,2 @@ +FROM gcr.io/kaniko-project/executor:debug +ENTRYPOINT [""]