0
0

Updated workflows
Some checks failed
imgin / build (push) Failing after 27s

This commit is contained in:
Opnxng 2024-06-17 10:42:07 +08:00
parent 2c0fe2c863
commit 2f3faaf24a

View File

@ -15,11 +15,8 @@ jobs:
build: build:
runs-on: runner runs-on: runner
container: container:
image: docker:cli image: git.opnxng.com/opnxng/docker-buildx:latest
steps: steps:
- name: Install packages
run: apk --no-cache add curl git jq
- name: Check latest upstream commit - name: Check latest upstream commit
run: | run: |
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1) 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: | run: |
if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then if [ "$STORED_COMMIT" != "$LATEST_COMMIT" ]; then
echo "Found a new commit, building new image" 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 # Create and use Docker Buildx builder
docker-buildx create --use --name buildx docker-buildx create --use --name buildx
# Login to Package Registry # Login to Package Registry