From 32a14521c85f8042f1a2fd8565fac6da1ed12625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Z=C3=A1le=C5=A1=C3=A1k?= Date: Fri, 24 Oct 2025 16:25:56 +0200 Subject: [PATCH] fix workflows --- .gitea/workflows/pages-deploy.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/pages-deploy.yml b/.gitea/workflows/pages-deploy.yml index ead3ac8..8d05365 100644 --- a/.gitea/workflows/pages-deploy.yml +++ b/.gitea/workflows/pages-deploy.yml @@ -35,11 +35,14 @@ jobs: # If using the 'assets' git submodule from Chirpy Starter, uncomment above # (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets) - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.3 - bundler-cache: true + #- name: Setup Ruby + # uses: ruby/setup-ruby@v1 + # with: + # ruby-version: 3.3 + # bundler-cache: true + - name: Use system Ruby + run: | + ruby -v || sudo apt update && sudo apt install -y ruby-full - name: Build site run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}" @@ -57,7 +60,7 @@ jobs: echo "FROM nginx:alpine" > Dockerfile echo "COPY _site /usr/share/nginx/html" >> Dockerfile echo "EXPOSE 80" >> Dockerfile - docker build -t ${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:${{ gitea.sha }} . + docker build -t ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:${{ gitea.sha }} . - name: Login to Gitea Container Registry run: | @@ -66,8 +69,8 @@ jobs: - name: Push Docker image run: | - docker tag ${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:${{ gitea.sha }} \ - ${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:latest - docker push ${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:${{ gitea.sha }} - docker push ${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:latest + docker tag ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:${{ gitea.sha }} \ + ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:latest + docker push ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:${{ gitea.sha }} + docker push ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:latest