Fix build workflow
Some checks failed
Build / build (push) Failing after 2m19s

This commit is contained in:
Moritz Ruth 2025-02-28 22:58:39 +01:00
parent 6cc00ba2a7
commit ba7121933f
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D

View file

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