Skip to content

Commit

Permalink
Add linux arm64 images to the build process
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-leschinsky committed Oct 11, 2023
1 parent 8c99dec commit aa17089
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/build_and_push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,31 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: agilepathway/pull-request-label-checker
tags: |
type=ref,event=branch
type=sha
- name: Build and push Docker image
# Skip running on forks or Dependabot since neither has access to secrets
if: |
(github.repository == 'agilepathway/label-checker') &&
(github.actor!= 'dependabot[bot]') &&
(contains(github.head_ref, 'dependabot/github_actions/') == false)
uses: docker/build-push-action@v1.1.0
uses: docker/build-push-action@v5
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: agilepathway/pull-request-label-checker
tag_with_ref: true
tags: ${{ steps.meta.outputs.tags }}
push: true
platforms: linux/amd64,linux/arm64
15 changes: 12 additions & 3 deletions .github/workflows/github_tag_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,18 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: docker/[email protected]
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: agilepathway/pull-request-label-checker
tags: ${{ needs.tag.outputs.tag }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
tags: agilepathway/pull-request-label-checker:${{ needs.tag.outputs.tag }}
platforms: linux/amd64,linux/arm64
push: true

0 comments on commit aa17089

Please sign in to comment.