feat: migrate from woodpecker to forgejo actions
Some checks failed
/ builder (push) Failing after 2s
Some checks failed
/ builder (push) Failing after 2s
This commit is contained in:
parent
ac3ac10dba
commit
60b1e0ada7
4 changed files with 26 additions and 41 deletions
26
.forgejo/workflows/builder.yml
Normal file
26
.forgejo/workflows/builder.yml
Normal 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 }}
|
||||
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -1,2 +0,0 @@
|
|||
FROM gcr.io/kaniko-project/executor:debug
|
||||
ENTRYPOINT [""]
|
Loading…
Reference in a new issue