41 lines
No EOL
1.1 KiB
YAML
41 lines
No EOL
1.1 KiB
YAML
name: "Build"
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
tags:
|
|
- v**
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: "docker"
|
|
container:
|
|
image: "code.forgejo.org/oci/node:22-alpine"
|
|
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: "https://code.forgejo.org/actions/checkout@v4"
|
|
|
|
- name: "Install Podman and Buildah"
|
|
run: |
|
|
apk add podman buildah
|
|
sed -i "s/overlay/vfs/g" /etc/containers/storage.conf
|
|
|
|
- name: "Build the container image"
|
|
id: "build-image"
|
|
uses: "https://github.com/redhat-actions/buildah-build@v2"
|
|
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 }} |