diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..9b167f1b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: Jekyll site CI + +on: + push: + branches: [ "main" ] + +jobs: + docker: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2.2' + - run: bundle install + - run: bundle exec jekyll build --trace --future + + #- name: Set up QEMU + # uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: registry.steffenillium.de/v2/ + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASS }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64 # ,linux/arm64 + push: true + tags: registry.steffenillium.de/steffen/website +