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 }}"