Files
git-pages/.forgejo/workflows/ci.yaml
T
2025-09-20 01:18:25 +00:00

34 lines
1.0 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [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