.github/workflows/deploy.yml aktualisiert
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 45s
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 45s
This commit is contained in:
parent
f9c8aac58b
commit
8a14b9edaf
1 changed files with 10 additions and 7 deletions
17
.github/workflows/deploy.yml
vendored
17
.github/workflows/deploy.yml
vendored
|
|
@ -8,17 +8,21 @@ on:
|
|||
jobs:
|
||||
test-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
# HIER: Wir wechseln auf das offizielle, öffentliche HashiCorp-Image!
|
||||
container: hashicorp/terraform:1.7.0
|
||||
# HIER: Das offizielle, voll ausgestattete Image der Pipeline-Macher
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Install Terraform
|
||||
run: |
|
||||
apt-get update && apt-get install -y wget gpg lsb-release
|
||||
wget -O- https://hashicorp.com | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list
|
||||
apt-get update && apt-get install -y terraform
|
||||
|
||||
- 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: |
|
||||
apk add --no-cache docker-cli
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login forgejo:3000 -u ${{ github.actor }} --password-stdin
|
||||
run: 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
|
||||
|
|
@ -40,7 +44,6 @@ 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