diff --git a/.gitea/workflows/container.yaml b/.gitea/workflows/container.yaml index 09e79a9..e26f434 100644 --- a/.gitea/workflows/container.yaml +++ b/.gitea/workflows/container.yaml @@ -10,21 +10,25 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v4 - - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v3 - - name: Login to container registry - uses: docker/login-action@v3 + - name: Install dependencies + run: | + apt-get update -y + apt-get install -y podman buildah + - name: Build container image + id: build-image + uses: redhat-actions/buildah-build@v2 + with: + image: ${{ env.CONTAINER_NAME }} + tags: ${{ env.CONTAINER_TAG }} + containerfiles: play/Containerfile + - name: Push to container registry + id: push-to-registry + uses: redhat-actions/push-to-registry@v2 with: registry: ${{ vars.CONTAINER_REGISTRY_URL }} + image: ${{ steps.build-image.outputs.image }} + tags: ${{ steps.build-image.outputs.tags }} username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} - - name: Build and push container - uses: docker/build-push-action@v5 - with: - context: . - file: play/Containerfile - platforms: | - linux/amd64 - linux/arm64 - push: true - tags: ${{ vars.CONTAINER_REGISTRY_URL }}/${{ env.CONTAINER_NAME }}:${{ env.CONTAINER_TAG }} + - name: Print container image URL + run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"