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