mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 11:11:35 +00:00
Build Docker images on CI.
This commit is contained in:
31
.forgejo/workflows/ci.yaml
Normal file
31
.forgejo/workflows/ci.yaml
Normal 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
|
||||
Reference in New Issue
Block a user