Skip to content

Commit

Permalink
rewrite build platforms in single variable
Browse files Browse the repository at this point in the history
  • Loading branch information
viperadnan-git authored Feb 10, 2024
1 parent 8f7e660 commit ff319b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
IMAGE_NAME: ${{ github.event.repository.name }}
PLATFORMS: linux/amd64,linux/arm64

jobs:
push-to-docker-hub:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
platforms: ${{ env.PLATFORMS }}

- name: Update Docker Hub description
uses: peter-evans/dockerhub-description@v4
Expand Down Expand Up @@ -107,4 +108,4 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
platforms: ${{ env.PLATFORMS }}

0 comments on commit ff319b2

Please sign in to comment.