Skip to content

Commit

Permalink
Merge pull request #1286 from rabbitmq/build-and-publish-arm64-image
Browse files Browse the repository at this point in the history
Generate arm64 image
  • Loading branch information
PujaVad committed Mar 15, 2023
2 parents 0f48de6 + ca5f461 commit bb4f20d
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: OCI Metadata for single-arch image
- name: OCI Metadata for single-arch amd64 image
#if: startsWith(github.ref, 'refs/tags/v')
id: single-arch-meta
id: single-arch-meta-amd64
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
Expand All @@ -124,15 +124,37 @@ jobs:
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}},type=sha,suffix=-amd64,latest=false
- name: Build and push single-arch image
- name: Build and push single-arch amd64 image
#if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.single-arch-meta.outputs.tags }}
labels: ${{ steps.single-arch-meta.outputs.labels }}
tags: ${{ steps.single-arch-meta-amd64.outputs.tags }}
labels: ${{ steps.single-arch-meta-amd64.outputs.labels }}
- name: OCI Metadata for single-arch arm64 image
#if: startsWith(github.ref, 'refs/tags/v')
id: single-arch-meta-arm64
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
rabbitmqoperator/cluster-operator
flavor: |
latest=false
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}},type=sha,suffix=-arm64,latest=false
- name: Build and push single-arch arm64 image
#if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.single-arch-meta-arm64.outputs.tags }}
labels: ${{ steps.single-arch-meta-arm64.outputs.labels }}
- name: Build manifest
if: github.event_name != 'pull_request'
env:
Expand Down

0 comments on commit bb4f20d

Please sign in to comment.