This commit is contained in:
parent
7f8f7c8020
commit
2b7aa4c0dd
1 changed files with 18 additions and 13 deletions
|
@ -8,25 +8,30 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: "docker"
|
runs-on: "docker://code.forgejo.org/oci/alpine:3.21"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: "https://code.forgejo.org/actions/checkout@v4"
|
uses: "https://code.forgejo.org/actions/checkout@v4"
|
||||||
|
|
||||||
- name: "Setup Docker"
|
- name: "Install Podman and Buildah"
|
||||||
uses: "https://github.com/docker/setup-docker-action@v4"
|
run: "apk add podman buildah"
|
||||||
|
|
||||||
- name: "Login to the container registry"
|
- name: "Build the container image"
|
||||||
uses: "https://github.com/docker/login-action@v3"
|
id: "build-image"
|
||||||
with:
|
uses: "https://github.com/redhat-actions/buildah-build@v2"
|
||||||
registry: git.moritzruth.de
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ github.token }}
|
|
||||||
|
|
||||||
- name: "Build and push"
|
|
||||||
uses: "https://github.com/docker/build-push-action@v6"
|
|
||||||
with:
|
with:
|
||||||
file: "Containerfile"
|
file: "Containerfile"
|
||||||
push: true
|
push: true
|
||||||
tags: "git.moritzruth.de/moritzruth/sscdc:${{ github.ref_name }}"
|
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 }}
|
Loading…
Add table
Reference in a new issue