Files
devcontainer/.gitea/workflows/build.yaml
T
maurice ef1eef1674
Build container / build (push) Successful in 5m37s
Update
2026-08-28 16:53:24 +02:00

42 lines
1.2 KiB
YAML

name: Build container
on:
workflow_dispatch:
push:
branches: ["main"]
paths: ["container/**", ".gitea/workflows/build.yaml"]
pull_request:
branches: ["main"]
paths: ["container/**", ".gitea/workflows/build.yaml"]
jobs:
build:
runs-on: job-v2
steps:
- uses: actions/checkout@v6
- name: Log in
uses: redhat-actions/podman-login@v1
with:
registry: git.plabble.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build
id: build
uses: job79/buildah-build@65b3793a1370c1ccd74a5c0d090d70eb9637a4ef
with:
image: maurice/devc
tags: ${{ github.ref_name }}
context: ./container
containerfiles: ./container/Containerfile
platforms: linux/amd64
- name: Push
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build.outputs.image }}
tags: ${{ steps.build.outputs.tags }}
registry: git.plabble.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
extra-args: |
--compression-format=zstd
--compression-level=12