From 7659e7a67381f406fea7bf0659fa271099769d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Sun, 23 Feb 2025 16:51:26 +0100 Subject: [PATCH] build docker image using predefined action --- .forgejo/workflows/build-jekyll.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/build-jekyll.yml b/.forgejo/workflows/build-jekyll.yml index e8c5f54..b100a2d 100644 --- a/.forgejo/workflows/build-jekyll.yml +++ b/.forgejo/workflows/build-jekyll.yml @@ -6,7 +6,7 @@ jobs: build_website: runs-on: docker container: - image: git.hswro.org/fleg/hswro_org:latest + image: git.hswro.org/fleg/hswro_org_build:latest steps: - uses: actions/checkout@v3 with: @@ -18,9 +18,20 @@ jobs: build_and_push_container: runs-on: docker container: - image: git.hswro.org/fleg/hswro_org:latest + image: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 with: - - run: find - - run: podman version + 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: + file: {context}/docker/serve.Dockerfile + tags: fleg/hswro_org:latest + push: true