From df3dd03f76725c565c3b99d11ad836903c56e4f1 Mon Sep 17 00:00:00 2001 From: KoCoder Date: Wed, 18 Feb 2026 20:55:55 +0100 Subject: [PATCH] CI: Test Geminis output --- .gitea/workflows/build-docker-container.yaml | 35 +++++++++----------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/build-docker-container.yaml b/.gitea/workflows/build-docker-container.yaml index 1652c58..e1b7ea8 100644 --- a/.gitea/workflows/build-docker-container.yaml +++ b/.gitea/workflows/build-docker-container.yaml @@ -8,39 +8,34 @@ jobs: build: runs-on: ubuntu-latest + container: + image: quay.io/buildah/stable + options: --privileged + steps: - uses: actions/checkout@v4 - name: Login to Registry - uses: docker/login-action@v2 + uses: redhat-actions/podman-login@v1 with: registry: git.kocoder.xyz username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_PASSWORD }} - - name: "Install buildah" - run: sudo apt-get -y update && sudo apt-get -y install buildah - - name: Buildah Build - env: - BRANCH_NAME: ${{ github.ref_name }} - SHORT_HASH: ${{ github.sha }} + id: build-image uses: redhat-actions/buildah-build@v2 with: containerfiles: "Dockerfile" - image: git.kocoder.xyz/kocoded/vt-be + image: vt-be tags: "${{ github.ref_name }} latest" - extra-args: | - --isolation=chroot + # No extra args needed with privileged mode usually, but isolation=chroot is fine if preferred. - name: Push Docker Images - env: - BRANCH_NAME: ${{ github.ref_name }} - SHORT_HASH: ${{ github.sha }} - run: | - docker push git.kocoder.xyz/kocoded/vt-be:${BRANCH_NAME} - docker push git.kocoder.xyz/kocoded/vt-be:latest - - - name: Log out from registry - if: always() - run: docker logout git.kocoder.xyz + uses: redhat-actions/push-to-registry@v2 + with: + image: vt-be + tags: ${{ steps.build-image.outputs.tags }} + registry: git.kocoder.xyz/kocoded + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASSWORD }}