packagebuild/.forgejo/workflows/container-build.yml

62 Zeilen
1,8 KiB
YAML

on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
jobs:
debian:
runs-on: private-vault
strategy:
matrix:
version:
- bookworm
steps:
- name: Fetch repo
uses: actions/checkout@v3
- name: Container build
run: "./build_debian.sh ${{ matrix.version }}"
- uses: ./.forgejo/steps/push
with:
tags: ${{ matrix.version }}-${{ github.run_number }} ${{ matrix.version }} latest
registry: ${{ github.server_url }}
path: ${{ github.repository_owner }}/debian
image: oci:debian:${{ matrix.version }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Cleanup
run: podman image prune -f
ubi:
runs-on: private-vault
strategy:
matrix:
version:
- 9
steps:
- name: Fetch repo
uses: actions/checkout@v3
- name: Container build
run: "./build_ubi.sh ${{ matrix.version }}"
- uses: ./.forgejo/steps/push
with:
tags: ${{ matrix.version }}-${{ github.run_number }} ${{ matrix.version }} latest
registry: ${{ github.server_url }}
path: ${{ github.repository_owner }}/ubi
image: oci:ubi:${{ matrix.version }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Cleanup
run: podman image prune -f
archlinux:
runs-on: private-vault
steps:
- name: Fetch repo
uses: actions/checkout@v3
- name: Container build
run: "./build_arch.sh"
- uses: ./.forgejo/steps/push
with:
tags: latest ${{ github.run_number }}
registry: ${{ github.server_url }}
path: ${{ github.repository_owner }}/archlinux
image: oci:archlinux
password: ${{ secrets.DOCKER_TOKEN }}
- name: Cleanup
run: podman image prune -f