Skip to content

Commit

Permalink
Update Docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Feb 18, 2024
1 parent ff080f0 commit 2b9800f
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@ on:
branches:
- main
workflow_dispatch:
inputs:
arm64:
description: Build multi-platform image including arm64
type: boolean
required: false
default: false

env:
IMAGES: |
${{ vars.DOCKERHUB_REPOSITORY || github.repository }}
IMAGES: ${{ vars.DOCKERHUB_REPOSITORY || github.repository }}

jobs:
docker:
Expand Down Expand Up @@ -50,9 +43,9 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: |
linux/amd64
${{ (inputs.arm64 || github.event_name == 'push') && 'linux/arm64' || '' }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name == 'push' }}

0 comments on commit 2b9800f

Please sign in to comment.