diff --git a/.github/workflows/snowflake.yml b/.github/workflows/snowflake.yml index f3ee08297..8a84d7d9f 100644 --- a/.github/workflows/snowflake.yml +++ b/.github/workflows/snowflake.yml @@ -88,6 +88,39 @@ jobs: cd clouds/snowflake make deploy diff="$GIT_DIFF" production=1 + deploy-internal-stable: + if: github.ref_name == 'stable' + needs: test + runs-on: ubuntu-20.04 + timeout-minutes: 20 + strategy: + matrix: + include: + - account: SF_ACCOUNT_CD + database: SF_DATABASE_STABLE_CD + user: SF_USER_CD + password: SF_PASSWORD_CD + role: SF_ROLE_CD + env: + SF_ACCOUNT: ${{ secrets[matrix.account] }} + SF_DATABASE: ${{ secrets[matrix.database] }} + SF_USER: ${{ secrets[matrix.user] }} + SF_PASSWORD: ${{ secrets[matrix.password] }} + SF_ROLE: ${{ secrets[matrix.role] }} + steps: + - name: Checkout repo + uses: actions/checkout@v2 + - name: Check diff + uses: technote-space/get-diff-action@v4 + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: ${{ env.NODE_VERSION }} + - name: Run deploy + run: | + cd clouds/snowflake + make deploy diff="$GIT_DIFF" production=1 + deploy-internal-app: if: github.ref_name == 'main' needs: test