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

This commit is contained in:
bast 2026-10-31 13:58:42 +00:00
parent 1a663b0d17
commit 79a14bfd7e

View file

@ -19,22 +19,24 @@ jobs:
chmod +x /usr/local/bin/terraform
terraform --version
# KORRIGIERT: Spricht das Zertifikat exakt über localhost:3000 an und leitet es intern an nginx weiter
# KORRIGIERT: Keine ungültigen Flags mehr. Nutzt den echten HTTPS-Endpunkt
- name: Log in to Local Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login --add-host=localhost:127.0.0.1 localhost:3000 -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login nginx:3000 -u ${{ github.actor }} --password-stdin
# KORRIGIERT: Taggt das Image passend zur localhost-Registry
- name: Inject Version into Dockerfile
run: sed -i "s/{{APP_VERSION}}/${{ github.sha }}/g" Dockerfile
# KORRIGIERT: Taggt das Image passend zur nginx:3000 Registry
- name: Build App Image
run: |
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 .
docker build -t nginx:3000/${{ github.repository }}:${{ github.sha }} .
docker build -t nginx:3000/${{ github.repository }}:latest .
# KORRIGIERT: Pusht verschlüsselt über das Nginx-SSL-Tor auf Port 3000
# KORRIGIERT: Pusht verschlüsselt über das Nginx-SSL-Tor
- name: Push App Image
run: |
docker push localhost:3000/${{ github.repository }}:${{ github.sha }}
docker push localhost:3000/${{ github.repository }}:latest
docker push nginx:3000/${{ github.repository }}:${{ github.sha }}
docker push nginx:3000/${{ github.repository }}:latest
- name: Terraform Deploy
run: |