chore(ci): Test using macos arm64 runner #112
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Development - Pull Request | |
on: | |
pull_request_target: | |
branches: | |
- main | |
jobs: | |
lint-format: | |
name: Linting and Formatting Checks | |
uses: ./.github/workflows/lint-and-format.yml | |
build: | |
needs: lint-format | |
name: Build | |
runs-on: macos-latest | |
environment: Development | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up Docker Buildx (for ARM64) | |
run: | | |
brew install docker docker-buildx | |
- name: Build Docker container | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
REDIS_URI: ${{ secrets.REDIS_URI }} | |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }} | |
NEXT_PUBLIC_DRIVE_LINK: ${{ secrets.NEXT_PUBLIC_DRIVE_LINK }} | |
run: | | |
docker buildx build \ | |
--platform linux/arm64 \ | |
--secret id=DATABASE_URL \ | |
--secret id=REDIS_URI \ | |
--secret id=NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY \ | |
--secret id=NEXT_PUBLIC_DRIVE_LINK \ | |
--file=Dockerfile -t csclub-website . |