Skip to content

Commit

Permalink
build: fix docker platforms for releases (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek authored Feb 1, 2024
1 parent 78b3c1f commit a8f1ae6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ on:
jobs:
build:
runs-on: ubuntu-22.04
env:
PLATFORMS: ${{ github.event_name == 'release' && 'linux/amd64,linux/arm64' || github.event.inputs.platforms }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -88,7 +90,7 @@ jobs:
with:
context: .
file: ./DOCKER/Dockerfile
platforms: ${{ github.event.inputs.platforms }}
platforms: ${{ env.PLATFORMS }}
target: base
push: false
cache-from: |
Expand All @@ -104,7 +106,7 @@ jobs:
with:
context: .
file: ./DOCKER/Dockerfile
platforms: ${{ github.event.inputs.platforms }}
platforms: ${{ env.PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down

0 comments on commit a8f1ae6

Please sign in to comment.