Files
website/.github/workflows/main.yml
T
steffen ca7002c9a5
Jekyll site CI / docker (push) Failing after 9s
Update .github/workflows/main.yml
2025-05-15 17:31:35 +02:00

51 lines
1.2 KiB
YAML

name: Jekyll site CI
on:
push:
branches: [ "main" ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to Gitea Package Registry
# (Test credentials early, befor failing late in the process.)
uses: docker/login-action@v3
with:
registry: http://${{LOCAL_REGISTRY}}:3000
http: true
username: ${{ gitea.actor }}
password: ${{ secrets.TOKEN }}
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.7'
- name: Install GEM bundle
run: bundle install
- name: Build Website using Jekyll
run: bundle exec jekyll build --trace --future
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ gitea.actor }}
password: ${{ secrets.TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64 # ,linux/arm64
push: true
tags: gitea_app:3000/steffen/website