Skip to content

Commit

Permalink
ci: publish amd64 and arm64 images (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgazelka authored Dec 14, 2024
1 parent ae4e70e commit b9fc444
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,44 @@ env:
IMAGE_NAME: ${{ github.repository }}
jobs:
docker:
strategy:
matrix:
runner: [ubuntu-latest, ubuntu-latest-arm64]
runs-on: ${{ matrix.runner }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push hyperion-proxy
uses: docker/build-push-action@v5
with:
context: .
push: true
target: hyperion-proxy
platforms: linux/amd64,linux/arm64
tags: |
${{ env.REGISTRY }}/${{ github.repository }}/hyperion-proxy:latest
${{ env.REGISTRY }}/${{ github.repository }}/hyperion-proxy:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build and push tag
uses: docker/build-push-action@v5
with:
context: .
push: true
target: tag
platforms: linux/amd64,linux/arm64
tags: |
${{ env.REGISTRY }}/${{ github.repository }}/tag:latest
${{ env.REGISTRY }}/${{ github.repository }}/tag:${{ github.sha }}
Expand Down

0 comments on commit b9fc444

Please sign in to comment.