Skip to content

Commit

Permalink
Add build and push so that we can build arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
roceb committed Aug 19, 2024
1 parent 9532cfa commit 99e26c6
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ jobs:
fi >> ${GITHUB_OUTPUT}
- uses: actions/checkout@v4

- uses: docker/setup-buildx-action@v3
name: Set up Docker Buildx

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
uses: lsst-dm/build-and-push@tickets/DM-45812
with:
push: true
tags: ghcr.io/${{ github.repository }}:${{ matrix.rhel }}-${{ steps.tag.outputs.tag }}
file: base-${{ matrix.rhel }}/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
github_token: ${{ secrets.GITHUB_TOKEN }}
platforms: linux/amd64,linux/arm64
tag: ${{ matrix.rhel }}-${{ steps.tag.outputs.tag }}
dockerfile: base-${{ matrix.rhel }}/Dockerfile

0 comments on commit 99e26c6

Please sign in to comment.