diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 159c5d5..caf0ca1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,13 +8,17 @@ on: jobs: test-and-deploy: runs-on: ubuntu-latest - container: ghcr.io/devops-infra/docker-terraform:latest + # HIER: Wir wechseln auf das offizielle, öffentliche HashiCorp-Image! + container: hashicorp/terraform:1.7.0 steps: - name: Checkout Code uses: actions/checkout@v4 + # Da dieses Image rein für Terraform ist, führen wir deine Befehle direkt über die Shell aus - name: Log in to Local Registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login forgejo:3000 -u ${{ github.actor }} --password-stdin + run: | + apk add --no-cache docker-cli + echo "${{ secrets.GITHUB_TOKEN }}" | docker login forgejo:3000 -u ${{ github.actor }} --password-stdin - name: Inject Version into Dockerfile run: sed -i "s/{{APP_VERSION}}/${{ github.sha }}/g" Dockerfile @@ -36,6 +40,7 @@ jobs: - name: Verify App Health run: | + apk add --no-cache curl echo "Warte auf das Ingress-Routing..." sleep 15 curl --fail --connect-timeout 5 http://local-k3s-platform:80/ || exit 1