Просмотр исходного кода

Create porter_production.yml file (#2845)

Co-authored-by: porter-internal[bot] <108749831+porter-internal[bot]@users.noreply.github.com>
porter-internal[bot] 3 лет назад
Родитель
Сommit
0534d0e95d
1 измененных файлов с 25 добавлено и 0 удалено
  1. 25 0
      .github/workflows/porter_production.yml

+ 25 - 0
.github/workflows/porter_production.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: production
+        cluster: "8"
+        host: https://dashboard.internal-tools.getporter.dev
+        namespace: default
+        project: "1"
+        tag: ${{ steps.vars.outputs.sha_short }}
+        token: ${{ secrets.PORTER_TOKEN_1 }}