diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml new file mode 100644 index 0000000..c18c7fe --- /dev/null +++ b/.forgejo/workflows/ci.yaml @@ -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