Skip to content

Commit

Permalink
add github actions build/publish image workflow
Browse files Browse the repository at this point in the history
Signed-off-by: jbpratt <jbpratt78@gmail.com>
  • Loading branch information
jbpratt committed Dec 15, 2022
1 parent f7b5214 commit ef21b42
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit ef21b42

Please sign in to comment.