From 1a66dcd5ba913cf5a8a14dee72c9478d4ec5190a Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Sat, 23 Nov 2024 21:54:27 +0100 Subject: [PATCH] meta: add forgejo workflow --- .forgejo/workflows/build.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .forgejo/workflows/build.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..d0d51a1 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,22 @@ +on: + push: + +jobs: + build-x86_64: &build + container: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/x86_64:latest + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + - uses: https://code.forgejo.org/actions/cache@v4 + with: + path: ~/repodest + key: ${{ runner.os }}-ptrcports + + - name: Set up secrets + run: | + echo "${{ secrets.SSH_KEY }}" | base64 -d > /tmp/ssh_key + echo "${{ secrets.PACKAGER_PRIVKEY }}" | base64 -d > /tmp/packager_key + - name: Do the build + env: + PRIVATE_KEY: /tmp/ssh_key + PACKAGER_PRIVKEY: /tmp/packager_key + run: cd alpine && do-the-build