Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64 support #113

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading