Kaynağa Gözat

release test workflow

Matthew R Kasun 2 yıl önce
ebeveyn
işleme
1331609a10
1 değiştirilmiş dosya ile 41 ekleme ve 0 silme
  1. 41 0
      .github/workflows/releasetest.yml

+ 41 - 0
.github/workflows/releasetest.yml

@@ -0,0 +1,41 @@
+name: Deploy and Test Release
+
+on:
+  workflow_dispatch:
+    inputs:
+      release_branch:
+        description: 'Release Branch'
+        required: true
+
+jobs:
+
+  verifybranches:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v3
+        with:
+          repository: gravitl/netmaker
+          ref: ${{ inputs.release_branch }}
+      - name: Checkout
+        uses: actions/checkout@v3
+        with:
+          repository: gravitl/netclient
+          ref: ${{ inputs.release_branch }}
+
+  terraform:
+    needs: [verifybranches]
+    uses: gravitl/devops/.github/workflows/terraform.yml@master
+    with:
+      netmakerbranch: ${{ inputs.release_branch }}
+      netclientbranch: ${{ inputs.release_branch }}
+    secrets: inherit
+
+
+  testbranch:
+    needs: [terraform]
+    uses: gravitl/devops/.github/workflows/branchtest.yml@master
+    with:
+      tag: ${{ github.run_id }}-${{ github.run_attempt }}
+      network: netmaker
+    secrets: inherit