Skip to content

Commit

Permalink
arm64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Dec 6, 2024
1 parent ad25f5d commit c366bc5
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ env:
REGISTRY: ghcr.io

jobs:
build:
tag_bump:
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.tag_bump.outputs.new_tag }}
steps:
- uses: actions/checkout@v2
- id: tag_bump
Expand All @@ -22,22 +24,41 @@ jobs:
DEFAULT_BUMP: patch
RELEASE_BRANCHES: main
PRERELEASE: true
build:
needs: tag_bump
runs-on: ${{ matrix.runner }}
strategy:
matrix:
platform: [ amd64, arm64 ]
include:
- platform: amd64
runner: ubuntu-latest
- platform: arm64
runner: ARM64
steps:
- uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: platform_suffix
run: |
if [ "${{ matrix.platform }}" == "arm64" ]; then
echo "PLATFORM_SUFFIX=-arm64" >> $GITHUB_ENV
else
echo "PLATFORM_SUFFIX=" >> $GITHUB_ENV
fi
- name: Docker meta
id: meta
uses: docker/[email protected]
with:
images: |
ghcr.io/metrico/qryn-otel-collector
tags: |
latest
${{ steps.tag_bump.outputs.new_tag }}
latest${{ env.PLATFORM_SUFFIX }}
${{ needs.tag_bump.outputs.new_tag }}${{ env.PLATFORM_SUFFIX }}
- name: Build and push
uses: docker/[email protected]
with:
Expand Down

0 comments on commit c366bc5

Please sign in to comment.