Skip to content

Commit

Permalink
Merge pull request #141 from MusicDin/feat/arm-images
Browse files Browse the repository at this point in the history
Build arm64 images for Alpine
  • Loading branch information
tomponline authored Apr 16, 2024
2 parents 4ef000f + 380fffc commit 066d9a0
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/image-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@ name: Build Alpine Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
- cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC).
- cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC).
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
build-arm64:
type: boolean
default: false
description: Build arm64 images

jobs:
alpine:
runs-on: ubuntu-latest
runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -28,7 +32,10 @@ jobs:
- cloud
architecture:
- amd64
# - arm64
- arm64
build_arm64: ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- { architecture: arm64, build_arm64: false }
env:
type: "container"
distro: "${{ github.job }}"
Expand Down

0 comments on commit 066d9a0

Please sign in to comment.