From fc9a8b9bd1dc7770c94d4154ad6cafc35fc5e604 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Thu, 1 Feb 2024 13:33:00 +0100 Subject: [PATCH] build: fix docker platforms for releases --- .github/workflows/docker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a21b5d6428..4ad1c3f2b2 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 @@ -88,7 +90,7 @@ jobs: with: context: . file: ./DOCKER/Dockerfile - platforms: ${{ github.event.inputs.platforms }} + platforms: ${{ env.PLATFORMS }} target: base push: false cache-from: | @@ -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 }}