From 2f3faaf24a6907f1ade15ba3a4615eb0af79ce62 Mon Sep 17 00:00:00 2001 From: Opnxng Date: Mon, 17 Jun 2024 10:42:07 +0800 Subject: [PATCH] Updated workflows --- .gitea/workflows/imgin.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.gitea/workflows/imgin.yaml b/.gitea/workflows/imgin.yaml index 54c8256..ea165ea 100644 --- a/.gitea/workflows/imgin.yaml +++ b/.gitea/workflows/imgin.yaml @@ -15,11 +15,8 @@ jobs: build: runs-on: runner container: - image: docker:cli + image: git.opnxng.com/opnxng/docker-buildx:latest steps: - - name: Install packages - run: apk --no-cache add curl git jq - - name: Check latest upstream commit run: | STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1) @@ -33,10 +30,6 @@ jobs: run: | if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then echo "Found a new commit, building new image" - # Install Docker Buildx - BUILDX_VERSION=$(wget -q -O- https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.name') - wget -O /usr/bin/docker-buildx https://github.com/docker/buildx/releases/download/$BUILDX_VERSION/buildx-$BUILDX_VERSION.linux-arm64 - chmod +x /usr/bin/docker-buildx # Create and use Docker Buildx builder docker-buildx create --use --name buildx # Login to Package Registry