Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #6

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 14 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading