Skip to content

Commit

Permalink
👷 properly build tiered images
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaNecron committed Dec 24, 2023
1 parent cb9a5bf commit aca525f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
workflow_dispatch:
jobs:
push:
strategy:
matrix:
variant:
- tier-1
- tier-2
#- tier-3
name: Push to Docker Hub
runs-on: ubuntu-latest
steps:
Expand All @@ -28,13 +34,10 @@ jobs:
images: |
alphanecron/igloo
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
type=ref,event=branch,suffix=-${{ matrix.variant }}
type=ref,event=pr,prefix=pr-,suffix=suffix=-${{ matrix.variant }}
type=pep440,pattern={{version}},suffix=-${{ matrix.variant }}
type=raw,${{ matrix.variant }}
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Docker BuildX
Expand All @@ -52,6 +55,7 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
context: .
target: ${{ matrix.variant }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit aca525f

Please sign in to comment.