fix workflows
Some checks failed
Build and Deploy / build (push) Failing after 5m8s

This commit is contained in:
2025-10-24 16:25:56 +02:00
parent e5fcd279b8
commit 32a14521c8

View File

@@ -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