.github/workflows/deploy.yml aktualisiert
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 9s
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 9s
This commit is contained in:
parent
6fdab5d48b
commit
cbd87b5bd3
1 changed files with 6 additions and 6 deletions
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
|
|
@ -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
|
||||
|
||||
# SAUBER: Nutzt den echten Socket und die Namensauflösung im Docker-Netz
|
||||
# SAUBER & EINFACH: Der Host-Socket leitet localhost:3000 direkt an das Nginx-SSL-Tor 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 localhost: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 nginx/${{ github.repository }}:${{ github.sha }} .
|
||||
docker build -t nginx/${{ github.repository }}:latest .
|
||||
docker build -t localhost:3000/${{ github.repository }}:${{ github.sha }} .
|
||||
docker build -t localhost:3000/${{ github.repository }}:latest .
|
||||
|
||||
- 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: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue