hswro_org/.forgejo/workflows/build-jekyll.yml

28 lines
890 B
YAML

on:
push:
branches:
- main
jobs:
build_website:
runs-on: docker
container:
image: git.hswro.org/fleg/hswro_org_build:latest
steps:
- uses: actions/checkout@v3
- run: bundle exec jekyll build
- uses: actions/upload-artifact@v3
with:
name: generated-site
path: _site/
build_and_push_container:
runs-on: docker
container:
image: git.hswro.org/fleg/hswro_org_build:latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- run: cd .. && find
- run: echo ${{ secrets.FORGEJO_TOKEN }} | buildah login -u ${{ github.actor }} --password-stdin git.hswro.org
- run: cd generated-site && buildah build --file ../docker/serve.Dockerfile -t hswro-org:latest
- run: buildah push hswro-org:latest git.hswro.org/${{ github.actor }}/hswro-org:latest