feat: migrate from woodpecker to forgejo actions
Some checks failed
/ builder (push) Failing after 2s

This commit is contained in:
s3lph 2023-11-13 03:45:40 +01:00
parent ac3ac10dba
commit 60b1e0ada7
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
4 changed files with 26 additions and 41 deletions

View file

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

View file

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

View file

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

View file

@ -1,2 +0,0 @@
FROM gcr.io/kaniko-project/executor:debug
ENTRYPOINT [""]