Kaynağa Gözat

Create porter_tf_provisioner.yml file (#2853)

Co-authored-by: porter-internal[bot] <108749831+porter-internal[bot]@users.noreply.github.com>
porter-internal[bot] 3 yıl önce
ebeveyn
işleme
4e2cb62d9b

+ 25 - 0
.github/workflows/porter_install_script.yml

@@ -0,0 +1,25 @@
+"on":
+  push:
+    branches:
+      - master
+name: Deploy to Porter
+jobs:
+  porter-deploy:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v3
+      - name: Set Github tag
+        id: vars
+        run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
+      - name: Update Porter App
+        timeout-minutes: 20
+        uses: porter-dev/porter-update-action@v0.1.0
+        with:
+          app: install-script
+          cluster: "8"
+          host: https://dashboard.internal-tools.getporter.dev
+          namespace: default
+          project: "1"
+          tag: ${{ steps.vars.outputs.sha_short }}
+          token: ${{ secrets.PORTER_TOKEN_1 }}

+ 25 - 0
.github/workflows/porter_tf_provisioner.yml

@@ -0,0 +1,25 @@
+"on":
+  push:
+    branches:
+    - master
+name: Deploy to Porter
+jobs:
+  porter-deploy:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Checkout code
+      uses: actions/checkout@v3
+    - name: Set Github tag
+      id: vars
+      run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
+    - name: Update Porter App
+      timeout-minutes: 20
+      uses: porter-dev/porter-update-action@v0.1.0
+      with:
+        app: tf-provisioner
+        cluster: "8"
+        host: https://dashboard.internal-tools.getporter.dev
+        namespace: default
+        project: "1"
+        tag: ${{ steps.vars.outputs.sha_short }}
+        token: ${{ secrets.PORTER_TOKEN_1 }}

+ 0 - 2
zarf/helm/.serverenv

@@ -15,8 +15,6 @@ CLUSTER_CONTROL_PLANE_ADDRESS=http://ccp-web:7833
 
 # Github Login OAuth
 GITHUB_LOGIN_ENABLED=false
-GITHUB_CLIENT_ID=<your_github_client_id.Required_if_GITHUB_LOGIN_ENABLED=true>
-GITHUB_CLIENT_SECRET=<your_github_client_secret.Required_if_GITHUB_LOGIN_ENABLED=true>
 
 # Github App for repo deployments, and preview environments. Remove these if you are not using preview environments or deploying from a repo locally
 GITHUB_APP_CLIENT_ID=<github_app_id>