Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

gamma deployment after image build

Maidul Islam17bae52830f5
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index ab7b939e7b..34847749b1 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -99,4 +99,36 @@ jobs:
infisical/frontend:latest
platforms: linux/amd64,linux/arm64
build-args: |
- POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
\ No newline at end of file
+ POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
+ gamma-deployment:
+ name: Deploy to gamma
+ runs-on: ubuntu-latest
+ needs: frontend-image backend-image
+ if: github.event_name == 'repository_dispatch'
+ steps:
+ - name: ☁️ Checkout source
+ uses: actions/checkout@v3
+ - name: Install Helm
+ uses: azure/setup-helm@v3
+ with:
+ version: v3.10.0
+ - name: Install infisical helm chart
+ run: |
+ helm repo add infisical-helm-charts 'https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/'
+ helm repo update
+ - name: Install kubectl
+ uses: azure/setup-kubectl@v3
+ - name: Install doctl
+ uses: digitalocean/action-doctl@v2
+ with:
+ token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
+ - name: Save DigitalOcean kubeconfig with short-lived credentials
+ run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 k8s-1-25-4-do-0-nyc1-1670645170179
+ - name: switch to gamma namespace
+ run: kubectl config set-context --current --namespace=gamma
+ - name: test kubectl
+ run: kubectl get ingress
+ - name: Download helm values to file and upgrade gamma deploy
+ run: |
+ wget https://raw.githubusercontent.com/Infisical/infisical/main/.github/values.yaml
+ helm upgrade infisical infisical-helm-charts/infisical --values values.yaml --recreate-pods
\ No newline at end of file