Skip to content

Commit

Permalink
chore: use strategy matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
vittee committed May 24, 2024
1 parent edbf954 commit 7dda569
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/radio-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ env:

jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- runs-on: ubuntu-latest
arch: amd64
platforms: linux/amd64

runs-on: ${{ matrix.runs-on }}
permissions:
contents: read
packages: write
Expand All @@ -35,7 +42,7 @@ jobs:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha
type=sha,suffix=${{ matrix.arch }}
- name: Log in to the Container registry
uses: docker/login-action@v3
Expand All @@ -49,7 +56,8 @@ jobs:
with:
context: .
file: ./packages/radio/docker/discord/Dockerfile
push: true
platforms: ${{ matrix.platforms }}
# tags: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.SHORT_SHA }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true

0 comments on commit 7dda569

Please sign in to comment.