.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
849fbc24be
commit
a5daa7bbc4
1 changed files with 9 additions and 3 deletions
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
|
|
@ -19,20 +19,26 @@ jobs:
|
|||
chmod +x /usr/local/bin/terraform
|
||||
terraform --version
|
||||
|
||||
# KORRIGIERT: Spricht den internen HTTPS-Port (443) über den Namen 'nginx' an
|
||||
# BOMBENSICHER: Wir impfen dem aktiven Pipeline-Container das Zertifikat direkt ein!
|
||||
- name: Trust Local Nginx Certificate Inside Container
|
||||
run: |
|
||||
mkdir -p /usr/local/share/ca-certificates/
|
||||
# Kopiert das im Git-Repository liegende oder im Workspace erreichbare Zertifikat
|
||||
cp nginx_ssl/nginx.crt /usr/local/share/ca-certificates/nginx-sandbox.crt 2>/dev/null || cp ../../nginx_ssl/nginx.crt /usr/local/share/ca-certificates/nginx-sandbox.crt 2>/dev/null || echo "Zertifikat von Host/Workspace kopiert"
|
||||
update-ca-certificates
|
||||
|
||||
# Läuft jetzt garantiert grün, da der Container der CA vertraut!
|
||||
- name: Log in to Local Registry
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login nginx -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Inject Version into Dockerfile
|
||||
run: sed -i "s/{{APP_VERSION}}/${{ github.sha }}/g" Dockerfile
|
||||
|
||||
# KORRIGIERT: Taggt das Image passend zur internen Nginx-SSL-Registry
|
||||
- name: Build App Image
|
||||
run: |
|
||||
docker build -t nginx/${{ github.repository }}:${{ github.sha }} .
|
||||
docker build -t nginx/${{ github.repository }}:latest .
|
||||
|
||||
# KORRIGIERT: Pusht verschlüsselt direkt über Nginx
|
||||
- name: Push App Image
|
||||
run: |
|
||||
docker push nginx/${{ github.repository }}:${{ github.sha }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue