.github/workflows/deploy.yml aktualisiert
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 12s

This commit is contained in:
bast 2026-10-31 16:12:17 +00:00
parent f9eb2b1f55
commit 40aef2135c

View file

@ -25,22 +25,22 @@ jobs:
cp nginx_ssl/nginx.crt /usr/local/share/ca-certificates/nginx-sandbox.crt 2>/dev/null || echo "Nutze Workspace-Zertifikat"
update-ca-certificates
# KORRIGIERT: Erzwingt echtes HTTPS für den Nginx-Proxy auf Port 3000
# KORRIGIERT: Erzwingt echtes HTTPS über die simulierte Domain
- name: Log in to Local Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://localhost:3000 -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login registry.local:3000 -u ${{ github.actor }} --password-stdin
- name: Inject Version into Dockerfile
run: sed -i "s/{{APP_VERSION}}/${{ github.sha }}/g" Dockerfile
- name: Build App Image
run: |
docker build -t localhost:3000/${{ github.repository }}:${{ github.sha }} .
docker build -t localhost:3000/${{ github.repository }}:latest .
docker build -t registry.local:3000/${{ github.repository }}:${{ github.sha }} .
docker build -t registry.local:3000/${{ github.repository }}:latest .
- name: Push App Image
run: |
docker push localhost:3000/${{ github.repository }}:${{ github.sha }}
docker push localhost:3000/${{ github.repository }}:latest
docker push registry.local:3000/${{ github.repository }}:${{ github.sha }}
docker push registry.local:3000/${{ github.repository }}:latest
- name: Terraform Deploy
run: |