From cd8e6c2f3d8ca2518c0c46a63b4eab39f63cc1ed Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Sun, 3 Dec 2023 17:30:39 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/main.yml 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 +