.github/workflows/deploy.yml aktualisiert
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 3s
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 3s
This commit is contained in:
parent
91aa7e81a1
commit
5580938179
1 changed files with 9 additions and 11 deletions
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
|
|
@ -8,21 +8,19 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
test-and-deploy:
|
test-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# HIER: Wir definieren das Volume-Mapping direkt am Job-Container!
|
container: catthehacker/ubuntu:act-latest
|
||||||
container:
|
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
volumes:
|
|
||||||
- /usr/local/bin/terraform:/usr/local/bin/terraform
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
steps:
|
steps:
|
||||||
- name: Verify Local Terraform Binary
|
# 1. Erst den Code (und das Binary) aus dem Git-Repo holen
|
||||||
run: |
|
|
||||||
chmod +x /usr/local/bin/terraform
|
|
||||||
terraform --version
|
|
||||||
|
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# 2. Das mitgelieferte Binary aktivieren (Bombensicher und netzwerkunabhängig)
|
||||||
|
- name: Activate Included Terraform Binary
|
||||||
|
run: |
|
||||||
|
mv ./terraform /usr/local/bin/terraform 2>/dev/null || cp ./terraform-binary /usr/local/bin/terraform 2>/dev/null || echo "Nutze bereits vorhandenes File"
|
||||||
|
chmod +x /usr/local/bin/terraform
|
||||||
|
terraform --version
|
||||||
|
|
||||||
- name: Log in to Local Registry
|
- name: Log in to Local Registry
|
||||||
run: 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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue