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