This commit is contained in:
parent
6cc00ba2a7
commit
ba7121933f
1 changed files with 11 additions and 18 deletions
|
@ -16,26 +16,19 @@ jobs:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: "https://code.forgejo.org/actions/checkout@v4"
|
uses: "https://code.forgejo.org/actions/checkout@v4"
|
||||||
|
|
||||||
- name: "Install Podman and Buildah"
|
- name: "Install Docker"
|
||||||
run: |
|
run: |
|
||||||
apk add podman buildah
|
apk add docker
|
||||||
sed -i "s/overlay/vfs/g" /etc/containers/storage.conf
|
|
||||||
|
|
||||||
- name: "Build the container image"
|
- name: "Login to the container registry"
|
||||||
id: "build-image"
|
uses: "https://code.forgejo.org/docker/login-action@v3"
|
||||||
uses: "https://github.com/redhat-actions/buildah-build@v2"
|
|
||||||
with:
|
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
|
registry: git.moritzruth.de
|
||||||
username: ${{ github.actor }}
|
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 }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue