From 91cbdda9b8df03bec504994f2b9fc7009172f348 Mon Sep 17 00:00:00 2001 From: Job79 Date: Sat, 21 Dec 2024 11:08:40 +0100 Subject: [PATCH] ci: use podman for container builds --- .github/workflows/ci.yaml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 44ea07c..7a8ebcc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,17 +8,19 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Login to GHCR - uses: docker/login-action@v3 + - uses: actions/checkout@v4 + - name: Build + uses: redhat-actions/buildah-build@v2 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 username: ${{ github.actor }} 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