.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 16:17:37 +00:00
parent 0a3951a598
commit 8657b2c097

View file

@ -19,28 +19,22 @@ jobs:
chmod +x /usr/local/bin/terraform
terraform --version
- name: Trust Local Nginx Certificate Inside Container
run: |
mkdir -p /usr/local/share/ca-certificates/
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 über die simulierte Domain
# BOMBENSICHER: Docker sendet HTTP (Loopback) und Nginx nimmt HTTP auf Port 3005 an!
- name: Log in to Local Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login registry.local:3000 -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login localhost:3005 -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 registry.local:3000/${{ github.repository }}:${{ github.sha }} .
docker build -t registry.local:3000/${{ github.repository }}:latest .
docker build -t localhost:3005/${{ github.repository }}:${{ github.sha }} .
docker build -t localhost:3005/${{ github.repository }}:latest .
- name: Push App Image
run: |
docker push registry.local:3000/${{ github.repository }}:${{ github.sha }}
docker push registry.local:3000/${{ github.repository }}:latest
docker push localhost:3005/${{ github.repository }}:${{ github.sha }}
docker push localhost:3005/${{ github.repository }}:latest
- name: Terraform Deploy
run: |