-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (34 loc) · 946 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: build and publish image
on:
push:
branches: [ master ]
jobs:
build:
name: Build and push multi-arch images
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [ amd64, arm64 ]
steps:
- uses: docker/setup-qemu-action@v2
- uses: actions/checkout@v2
- uses: redhat-actions/podman-login@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- uses: redhat-actions/buildah-build@v2
id: build-image
with:
image: ghcr.io/SoMuchForSubtlety/strims-radio
tags: latest-${{ matrix.arch }}
arch: ${{ matrix.arch }}
oci: true
dockerfiles: |
./Dockerfile
- uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io