Skip to content

Commit

Permalink
build mac ARM second option
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Feb 15, 2024
1 parent 03940a0 commit bac6d72
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,28 @@ jobs:
NOMAD_VAR_NO_DEPLOY: 'true'
# omit this next line -- used here so `dyno` can test itself in GitHub Actions:
TEST_SCRIPT: '/app/test.sh'


build-for-mac-arm:
runs-on: ubuntu-latest
permissions: { contents: read, packages: write, id-token: write }
steps:
- uses: internetarchive/build@v1
with:
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}:${{ steps.extract_branch.outputs.branch }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ npm i
$DYNODIR/lint
```

## Using on the command line (with docker/podman)
## Using on the command line (with docker)
(For `podman` change `docker` to `podman` below)
```bash
# lint check all JS found in your CWD
docker run --rm --pull=always -v $(pwd):/code --workdir=/code ghcr.io/internetarchive/dyno:main
Expand Down

0 comments on commit bac6d72

Please sign in to comment.