Build Docker images on CI.

This commit is contained in:
Catherine
2025-09-20 00:11:36 +00:00
parent 9d18700834
commit fa17b9c1ed

View File

@@ -0,0 +1,31 @@
name: CI
on:
push: [main]
pull_request: [main]
workflow_dispatch:
jobs:
test:
runs-on: codeberg-small-lazy
container:
image: docker.io/library/debian:bookworm
steps:
- name: Install dependencies
run: |
apt-get -y update
apt-get -y install buildah ca-certificates nodejs
- name: Check out source code
uses: https://code.forgejo.org/actions/checkout@v5
- if: ${{ forge.repository == 'whitequark/git-pages' && 'true' || 'false' }}
name: Log into container registry
run: |
buildah login --authfile=/tmp/authfile.json \
-u whitequark -p ${{ secrets.PACKAGES_TOKEN }} codeberg.org
- name: Build container
uses: https://codeberg.org/actions/buildah-simple@main
with:
context: .
tag: "codeberg.org/whitequark/git-pages:latest"
push: ${{ forge.repository == 'whitequark/git-pages' && 'true' || 'false' }}
authfile: /tmp/authfile.json