Skip to content

Commit

Permalink
Merge pull request #218 from Infisical/gamma-auto-deploy
Browse files Browse the repository at this point in the history
Add github action for gamma deploy
  • Loading branch information
maidul98 authored Jan 13, 2023
2 parents 61318f2 + a8f38a5 commit 9974f88
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-gamma.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to Gamma stage

on: [workflow_dispatch]

jobs:
deployment:
name: Deploy to gamma
runs-on: ubuntu-latest
steps:
- name: ☁️ Checkout source
uses: actions/checkout@v3
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0
- 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

0 comments on commit 9974f88

Please sign in to comment.