From b35912f215464fa4514681fff50f22b6f43e7c78 Mon Sep 17 00:00:00 2001 From: zengxs Date: Wed, 27 Nov 2024 23:11:19 +0800 Subject: [PATCH] test --- .github/workflows/ci.yml | 53 +++++++++++----------------------------- 1 file changed, 14 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf12a95..f6bbfe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,47 +7,22 @@ on: jobs: build: - runs-on: ubuntu-latest - - env: - NGINX_VERSION: 1.27.2 + runs-on: macos-latest steps: - uses: actions/checkout@v4 with: - submodules: recursive - - - name: docker login to docker.io - uses: docker/login-action@v2 - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - with: - registry: docker.io - username: zengxs - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Setup binfmt-support - uses: docker/setup-qemu-action@v3 - - - name: Setup docker buildx - uses: docker/setup-buildx-action@v3 - - - name: Generate push tags - run: >- - python3 .github/workflows/generate-tags.py - --image-name docker.io/zengxs/nginx - --nginx-version ${{ env.NGINX_VERSION }} - --env-name PUSH_TAGS - >> $GITHUB_ENV - - - name: Build and push - uses: docker/build-push-action@v5 + repository: rejail/AppleAuthFix + ref: main + + - name: Install theos + run: | + bash -c "$(curl -fsSL https://raw.githubusercontent.com/theos/theos/master/bin/install-theos)" + + - name: Build + run: make package + + - name: Upload artifact + uses: actions/upload-artifact@v4 with: - context: . - push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - tags: ${{ env.PUSH_TAGS }} - # Only build multi-platform images on push to Docker Hub for reducing build time - platforms: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'linux/amd64,linux/arm64' || 'linux/amd64' }} - cache-from: type=gha - cache-to: type=gha,mode=max - build-args: | - NGINX_VERSION=${{ env.NGINX_VERSION }} + name: package