From ba7121933f7a032f4a34d073f1d3ed970bfd49d3 Mon Sep 17 00:00:00 2001 From: Moritz Ruth Date: Fri, 28 Feb 2025 22:58:39 +0100 Subject: [PATCH] Fix build workflow --- .forgejo/workflows/build.yaml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index ec47740..3e57f21 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -16,26 +16,19 @@ jobs: - name: "Checkout" uses: "https://code.forgejo.org/actions/checkout@v4" - - name: "Install Podman and Buildah" + - name: "Install Docker" run: | - apk add podman buildah - sed -i "s/overlay/vfs/g" /etc/containers/storage.conf + apk add docker - - name: "Build the container image" - id: "build-image" - uses: "https://github.com/redhat-actions/buildah-build@v2" + - name: "Login to the container registry" + uses: "https://code.forgejo.org/docker/login-action@v3" with: - file: "Containerfile" - push: true - image: "git.moritzruth.de/moritzruth/sscdc" - tags: "${{ github.ref_name }}" - containerfiles: "./Containerfile" - - - name: "Push the container image to the registry" - uses: "https://github.com/redhat-actions/push-to-registry@v2" - with: - image: ${{ steps.build-image.outputs.image }} - tags: ${{ steps.build-image.outputs.tags }} registry: git.moritzruth.de username: ${{ github.actor }} - password: ${{ github.token }} \ No newline at end of file + password: ${{ github.token }} + + - name: "Build and push the container image" + uses: "https://code.forgejo.org/docker/build-push-action@v6" + with: + push: true + tags: "git.moritzruth.de/moritzruth/sscdc:${{ github.ref_name }}"