Skip to content

v0.1.3

v0.1.3 #4

Workflow file for this run

name: Build and push Podman image
on:
release:
types: [published]
workflow_dispatch:
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GHCR
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64,amd64
- name: Build image
id: build_image
uses: redhat-actions/buildah-build@v2
with:
archs: amd64,arm64
context: .
containerfiles: ./Containerfile
image: ${{ env.IMAGE_REGISTRY }}/pelit
tags: latest ${{ github.event.release.tag_name }}
- name: Push to GHCR
uses: redhat-actions/push-to-registry@v2
with:
image: pelit
tags: ${{ steps.build_image.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}