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

63 Zeilen
1,8 KiB
YAML

2025-02-02 10:47:58 +01:00
on:
workflow_dispatch:
2025-02-03 16:18:41 +01:00
schedule:
- cron: "0 0 1 * *"
2025-02-02 10:47:58 +01:00
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:
2025-02-03 09:16:04 +01:00
tags: ${{ matrix.version }}-${{ github.run_number }} ${{ matrix.version }} latest
2025-02-02 10:47:58 +01:00
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:
2025-02-03 09:16:04 +01:00
tags: ${{ matrix.version }}-${{ github.run_number }} ${{ matrix.version }} latest
2025-02-02 10:47:58 +01:00
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