Skip to content

Commit

Permalink
Add arm64 container image builds
Browse files Browse the repository at this point in the history
  • Loading branch information
anothertobi committed May 2, 2024
1 parent c7ba06a commit 29f0ecf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ jobs:
build-push:
runs-on: ubuntu-latest
needs: imagetag
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
Expand All @@ -30,5 +38,6 @@ jobs:
id: docker_build
uses: docker/build-push-action@v5
with:
platforms: ${{ matrix.platform }}
push: true
tags: ghcr.io/amazeeio/opensearch:${{ needs.imagetag.outputs.version }}
18 changes: 18 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ jobs:
build:
runs-on: ubuntu-latest
needs: imagetag
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
Expand All @@ -30,12 +38,21 @@ jobs:
id: docker_build
uses: docker/build-push-action@v5
with:
platforms: ${{ matrix.platform }}
tags: ghcr.io/amazeeio/opensearch:pr${{ github.event.pull_request.number }}-${{ needs.imagetag.outputs.version }}
build-push:
runs-on: ubuntu-latest
needs: imagetag
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
Expand All @@ -48,5 +65,6 @@ jobs:
id: docker_build
uses: docker/build-push-action@v5
with:
platforms: ${{ matrix.platform }}
push: true
tags: ghcr.io/amazeeio/opensearch:pr${{ github.event.pull_request.number }}-${{ needs.imagetag.outputs.version }}

0 comments on commit 29f0ecf

Please sign in to comment.