Skip to content

Commit

Permalink
Merge pull request #900 from gravitl/develop
Browse files Browse the repository at this point in the history
update 0.26.0 with workflow changes
  • Loading branch information
Aceix authored Nov 13, 2024
2 parents 0c95a14 + fc25183 commit 27c2a64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI workflow

on:
push:
branches: [master, main, develop, saas-staging, saas-prod]
branches: [master, main, develop, saas-staging, saas-prod, release-**]
pull_request:
branches: [master, main, develop, saas-staging, saas-prod]
branches: [master, main, develop, saas-staging, saas-prod, release-**]

jobs:
lint:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/saas-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ jobs:
- name: Set Intercom vars
run: |
if [ "${{ github.event.inputs.environment }}" == "dev" ]; then
kubectl set env deployment ${{ env.VERSION_WITH_DASHES }} PUBLIC_POSTHOG_HOST=${{ secrets.REACT_APP_PUBLIC_POSTHOG_DEV_KEY }} -n accounts
kubectl set env deployment ${{ env.VERSION_WITH_DASHES }} PUBLIC_POSTHOG_KEY=${{ secrets.REACT_APP_PUBLIC_POSTHOG_DEV_KEY }} -n accounts
elif [ "${{ github.event.inputs.environment }}" == "staging" ]; then
kubectl set env deployment ${{ env.VERSION_WITH_DASHES }} PUBLIC_POSTHOG_HOST=${{ secrets.REACT_APP_PUBLIC_POSTHOG_DEV_KEY }} -n accounts
kubectl set env deployment ${{ env.VERSION_WITH_DASHES }} PUBLIC_POSTHOG_KEY=${{ secrets.REACT_APP_PUBLIC_POSTHOG_DEV_KEY }} -n accounts
elif [ "${{ github.event.inputs.environment }}" == "prod" ]; then
kubectl set env deployment ${{ env.VERSION_WITH_DASHES }} PUBLIC_POSTHOG_HOST=${{ secrets.REACT_APP_PUBLIC_POSTHOG_KEY }} -n accounts
kubectl set env deployment ${{ env.VERSION_WITH_DASHES }} PUBLIC_POSTHOG_KEY=${{ secrets.REACT_APP_PUBLIC_POSTHOG_KEY }} -n accounts
fi
kubectl set env deployment ${{ env.VERSION_WITH_DASHES }} INTERCOM_APP_ID=al371us8 -n accounts
kubectl set env deployment ${{ env.VERSION_WITH_DASHES }} PUBLIC_POSTHOG_KEY=${{ secrets.REACT_APP_PUBLIC_POSTHOG_HOST }} -n accounts
kubectl set env deployment ${{ env.VERSION_WITH_DASHES }} PUBLIC_POSTHOG_HOST=${{ secrets.REACT_APP_PUBLIC_POSTHOG_HOST }} -n accounts
- name: Deploy to k8s cluster
run: kubectl rollout restart deploy ${{ env.VERSION_WITH_DASHES }} -n accounts
Expand Down

0 comments on commit 27c2a64

Please sign in to comment.