From b151cd782789483bdd6b1bbba0e082fa6057cf73 Mon Sep 17 00:00:00 2001 From: itmodulo Date: Tue, 1 Jul 2025 16:56:33 +0200 Subject: [PATCH] update ci --- .gitea/workflows/release_arm64v8-edge.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release_arm64v8-edge.yml b/.gitea/workflows/release_arm64v8-edge.yml index c14640f..280a6e2 100755 --- a/.gitea/workflows/release_arm64v8-edge.yml +++ b/.gitea/workflows/release_arm64v8-edge.yml @@ -18,15 +18,22 @@ jobs: shell: sh run: | # faster mirror + essential build tools - echo "https://alpine.sakamoto.pl/alpine/$(. /etc/os-release; echo $PRETTY_NAME|cut -d '"' -f2)/main" > /etc/apk/repositories - echo "https://alpine.sakamoto.pl/alpine/$(. /etc/os-release; echo $PRETTY_NAME|cut -d '"' -f2)/community" >> /etc/apk/repositories - echo "https://alpine.sakamoto.pl/alpine/$(. /etc/os-release; echo $PRETTY_NAME|cut -d '"' -f2)/testing" >> /etc/apk/repositories + echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/main" > /etc/apk/repositories + echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/community" >> /etc/apk/repositories + echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/testing" >> /etc/apk/repositories apk update && apk upgrade apk add bash git curl alpine-sdk abuild sudo shadow fuse sshfs - name: Checkout sources uses: actions/checkout@v4 + - name: Set up keys + run: | + wget -q https://static.itmodulo.eu/dl/repo/public_keys/alpine/itmodulo%40disroot.org-65b4f779.rsa.pub -P /etc/apk/keys + su - runner -c 'wget -q https://static.itmodulo.eu/dl/repo/public_keys/alpine/itmodulo%40disroot.org-65b4f779.rsa.pub -P ~/.abuild/' + echo "${{ secrets.REPO_PRIVKEY }}" > /home/runner/.abuild/${{ secrets.REPO_PRIVKEY_FILENAME }} && chown runner:runner /home/runner/.abuild/${{ secrets.REPO_PRIVKEY_FILENAME }} + su - runner -c "echo 'PACKAGER_PRIVKEY="/home/runner/.abuild/${{ secrets.REPO_PRIVKEY_FILENAME }}"' >> ~/.abuild/abuild.conf" + - name: Prepare runner user run: | echo "user_allow_other" >> /etc/fuse.conf