.github/workflows/deploy.yml aktualisiert
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 10s
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 10s
This commit is contained in:
parent
df313071ef
commit
a098b389fa
1 changed files with 8 additions and 8 deletions
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
|
|
@ -19,24 +19,24 @@ jobs:
|
|||
chmod +x /usr/local/bin/terraform
|
||||
terraform --version
|
||||
|
||||
# KORRIGIERT: Geht verschlüsselt über den Caddy-Proxy (Port 443 intern)
|
||||
# KORRIGIERT: Nutzt localhost:3000, um den verschlüsselten Caddy-Port über den Host anzusprechen
|
||||
- name: Log in to Local Registry
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login caddy -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
|
||||
|
||||
# KORRIGIERT: Taggt das Image für den Caddy-Proxy
|
||||
# KORRIGIERT: Taggt das Image für deine lokale localhost-Registry
|
||||
- name: Build App Image
|
||||
run: |
|
||||
docker build -t caddy/${{ github.repository }}:${{ github.sha }} .
|
||||
docker build -t caddy/${{ github.repository }}:latest .
|
||||
docker build -t localhost:3000/${{ github.repository }}:${{ github.sha }} .
|
||||
docker build -t localhost:3000/${{ github.repository }}:latest .
|
||||
|
||||
# KORRIGIERT: Pusht verschlüsselt über Caddy
|
||||
# KORRIGIERT: Pusht verschlüsselt über localhost:3000
|
||||
- name: Push App Image
|
||||
run: |
|
||||
docker push caddy/${{ github.repository }}:${{ github.sha }}
|
||||
docker push caddy/${{ 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