.github/workflows/deploy.yml aktualisiert
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 13s
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 13s
This commit is contained in:
parent
1a663b0d17
commit
79a14bfd7e
1 changed files with 11 additions and 9 deletions
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue