fix workflows
All checks were successful
Build and Deploy / build (push) Successful in 16m30s

This commit is contained in:
2025-10-25 12:55:48 +02:00
parent 2b352907b7
commit f80523821e

View File

@@ -57,17 +57,17 @@ jobs:
echo "FROM nginx:alpine" > Dockerfile echo "FROM nginx:alpine" > Dockerfile
echo "COPY _site /usr/share/nginx/html" >> Dockerfile echo "COPY _site /usr/share/nginx/html" >> Dockerfile
echo "EXPOSE 80" >> Dockerfile echo "EXPOSE 80" >> Dockerfile
docker build -t ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:${{ gitea.sha }} . docker build -t ${CI_REGISTRY_IMAGE:-git.pixx.cz/${{ gitea.repository }}}:${{ gitea.sha }} .
- name: Login to Gitea Container Registry - name: Login to Gitea Container Registry
run: | run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${CI_REGISTRY:-10.22.16.11:80} \ echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${CI_REGISTRY:-git.pixx.cz} \
-u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
- name: Push Docker image - name: Push Docker image
run: | run: |
docker tag ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:${{ gitea.sha }} \ docker tag ${CI_REGISTRY_IMAGE:-git.pixx.cz/${{ gitea.repository }}}:${{ gitea.sha }} \
${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:latest ${CI_REGISTRY_IMAGE:-git.pixx.cz/${{ gitea.repository }}}:latest
docker push ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:${{ gitea.sha }} docker push ${CI_REGISTRY_IMAGE:-git.pixx.cz/${{ gitea.repository }}}:${{ gitea.sha }}
docker push ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:latest docker push ${CI_REGISTRY_IMAGE:-git.pixx.cz/${{ gitea.repository }}}:latest