Skip to content

Commit ba13ec3

Browse files
committed
Fix multiarch build
1 parent 6ee840a commit ba13ec3

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- "**.md"
77
branches:
88
- master
9+
tags:
10+
- 'v*'
11+
release:
12+
types: [published]
913
workflow_dispatch:
1014

1115
jobs:
@@ -15,8 +19,10 @@ jobs:
1519
include:
1620
- runner: ubuntu-24.04
1721
platform: linux/amd64
22+
tag: latest
1823
- runner: ubuntu-24.04-arm
1924
platform: linux/arm64
25+
tag: latest-arm
2026
runs-on: ${{ matrix.runner }}
2127
steps:
2228
- name: "Checkout GitHub Action"
@@ -33,5 +39,5 @@ jobs:
3339
run: |
3440
sudo apt-get update
3541
sudo apt-get install -y podman
36-
podman build . --platform ${{ matrix.platform}} -t ghcr.io/evanc577/sourcecatcher:latest
37-
podman push ghcr.io/evanc577/sourcecatcher:latest
42+
podman build . --platform ${{ matrix.platform }} -t ghcr.io/evanc577/sourcecatcher:${{ matrix.tag }}
43+
podman push ghcr.io/evanc577/sourcecatcher:${{ matrix.tag }}

0 commit comments

Comments
 (0)