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

This commit is contained in:
bast 2026-10-31 13:54:37 +00:00
parent f1e9a1033a
commit 1a663b0d17

View file

@ -19,21 +19,22 @@ jobs:
chmod +x /usr/local/bin/terraform
terraform --version
# KORRIGIERT: Geht verschlüsselt über den Nginx-Proxy (Port 443 intern)
# KORRIGIERT: Spricht das Zertifikat exakt über localhost:3000 an und leitet es intern an nginx weiter
- name: Log in to Local Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login nginx -u ${{ github.actor }} --password-stdin
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login --add-host=localhost:127.0.0.1 localhost:3000 -u ${{ github.actor }} --password-stdin
# KORRIGIERT: Taggt das Image für den Nginx-HTTPS-Proxy
# KORRIGIERT: Taggt das Image passend zur localhost-Registry
- name: Build App Image
run: |
docker build -t nginx/${{ github.repository }}:${{ github.sha }} .
docker build -t nginx/${{ github.repository }}:latest .
docker build --add-host=localhost:127.0.0.1 -t localhost:3000/${{ github.repository }}:${{ github.sha }} .
docker build --add-host=localhost:127.0.0.1 -t localhost:3000/${{ github.repository }}:latest .
# KORRIGIERT: Pusht verschlüsselt über Nginx
# KORRIGIERT: Pusht verschlüsselt über das Nginx-SSL-Tor auf Port 3000
- name: Push App Image
run: |
docker push nginx/${{ github.repository }}:${{ github.sha }}
docker push nginx/${{ github.repository }}:latest
docker push localhost:3000/${{ github.repository }}:${{ github.sha }}
docker push localhost:3000/${{ github.repository }}:latest
- name: Terraform Deploy
run: |