ci: use podman for container builds

This commit is contained in:
Job
2024-12-21 11:08:40 +01:00
parent 05f2a0690e
commit 91cbdda9b8

View File

@@ -8,17 +8,19 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Login to GHCR - uses: actions/checkout@v4
uses: docker/login-action@v3 - name: Build
uses: redhat-actions/buildah-build@v2
with: with:
image: ${{ github.actor }}/${{ github.event.repository.name }}
tags: latest
containerfiles: |
./Dockerfile
- name: Push
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ github.actor }}/${{ github.event.repository.name }}
tags: latest
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Set buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/${{ github.actor }}/${{ github.event.repository.name }}:latest