Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anacalva committed Mar 20, 2024
1 parent fbfacce commit 0c3eebb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/release-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,15 @@ jobs:
release-message: "${{ github.event.inputs.release-message }}"
environment-name: k8s
runs-on: arc-runner-scale-set-proxmox-vm
continue-error: false
continue-error: false

VM-Creation-Terraform:
if: github.event.ref == 'refs/heads/main'
name: VM-Creation
needs: Release-Terraform
uses: stuttgart-things/stuttgart-things/.github/workflows/vm-creation-terraform.yaml@main
with:
module-name: proxmox-vm
environment-name: k8s
runs-on: arc-runner-scale-set-proxmox-vm
continue-error: false
18 changes: 9 additions & 9 deletions .github/workflows/vm-creation-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- feature/*
- review/*
- fix/*
pull_request:
types: [opened, reopened]

env:
pve_api_url: ${{ secrets.PVE_API_URL }}
Expand All @@ -18,9 +20,8 @@ env:

jobs:

job_1:
runs-on: self-hosted

build-terraform-file:
runs-on: arc-runner-scale-set-proxmox-vm
steps:
- uses: actions/checkout@v4

Expand All @@ -44,10 +45,9 @@ jobs:
path: main.tf


job_2:

needs: job_1
runs-on: self-hosted
test-terraform-apply:
needs: build-terraform-file
runs-on: arc-runner-scale-set-proxmox-vm
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -82,8 +82,8 @@ jobs:
cleanup:
if: ${{ always() }}
needs: job_2
runs-on: self-hosted
needs: test-terraform-apply
runs-on: arc-runner-scale-set-proxmox-vm
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 0c3eebb

Please sign in to comment.