From 60b1e0ada7a983668cc705bf99755f90972f0399 Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 13 Nov 2023 03:45:40 +0100 Subject: [PATCH] feat: migrate from woodpecker to forgejo actions --- .forgejo/workflows/builder.yml | 26 ++++++++++++++++++++++++ .woodpecker.yml | 36 ---------------------------------- builder.Dockerfile | 3 --- kaniko.Dockerfile | 2 -- 4 files changed, 26 insertions(+), 41 deletions(-) create mode 100644 .forgejo/workflows/builder.yml delete mode 100644 .woodpecker.yml delete mode 100644 builder.Dockerfile delete mode 100644 kaniko.Dockerfile diff --git a/.forgejo/workflows/builder.yml b/.forgejo/workflows/builder.yml new file mode 100644 index 0000000..ec03211 --- /dev/null +++ b/.forgejo/workflows/builder.yml @@ -0,0 +1,26 @@ +--- + +on: + push: + branches: + - main + schedule: + - cron: "0 0 * * 0" + +jobs: + + builder: + runs-on: docker + steps: + - uses: https://git.kabelsalat.ch/s3lph/forgejo-kaniko-action + with: + dockerfile: | + FROM docker.io/library/node:18-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 + ENTRYPOINT ["/bin/bash"] + image: git.kabelsalat.ch/s3lph/package-pipeline-builder:latest + registry: git.kabelsalat.ch + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 8b4d039..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- - -steps: - - kaniko: - image: git.kabelsalat.ch/s3lph/package-pipeline-builder/kaniko:latest - pull: true - secrets: [gitea_api_username, gitea_api_password] - 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 - secrets: [gitea_api_username, gitea_api_password] - 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/builder.Dockerfile b/builder.Dockerfile deleted file mode 100644 index 73cc26c..0000000 --- a/builder.Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 6905905..0000000 --- a/kaniko.Dockerfile +++ /dev/null @@ -1,2 +0,0 @@ -FROM gcr.io/kaniko-project/executor:debug -ENTRYPOINT [""]