42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
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
|
|
with:
|
|
- 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: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
-
|
|
name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.hswro.org
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: {context}/docker/serve.Dockerfile
|
|
tags: fleg/hswro_org:latest
|
|
push: true
|