Skip to content

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

update gamma deploy workflow

Maidul Islamcd8314161722
diff --git a/.github/workflows/build-staging-img.yml b/.github/workflows/build-staging-and-deploy.yml
similarity index 75%
rename from .github/workflows/build-staging-img.yml
rename to .github/workflows/build-staging-and-deploy.yml
index 6e094871e3..7557426666 100644
--- a/.github/workflows/build-staging-img.yml
+++ b/.github/workflows/build-staging-and-deploy.yml
@@ -35,15 +35,15 @@ jobs:
context: .
file: Dockerfile.standalone-infisical
tags: infisical/infisical:test
- - name: ⏻ Spawn backend container and dependencies
- run: |
- docker compose -f .github/resources/docker-compose.be-test.yml up --wait --quiet-pull
- - name: 🧪 Test backend image
- run: |
- ./.github/resources/healthcheck.sh infisical-backend-test
- - name: ⏻ Shut down backend container and dependencies
- run: |
- docker compose -f .github/resources/docker-compose.be-test.yml down
+ # - name: ⏻ Spawn backend container and dependencies
+ # run: |
+ # docker compose -f .github/resources/docker-compose.be-test.yml up --wait --quiet-pull
+ # - name: 🧪 Test backend image
+ # run: |
+ # ./.github/resources/healthcheck.sh infisical-backend-test
+ # - name: ⏻ Shut down backend container and dependencies
+ # run: |
+ # docker compose -f .github/resources/docker-compose.be-test.yml down
- name: 🏗️ Build backend and push
uses: depot/build-push-action@v1
with:
@@ -59,11 +59,29 @@ jobs:
build-args: |
POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }}
-
+ postgres-migration:
+ name: Run latest migration files
+ runs-on: ubuntu-latest
+ needs: [infisical-image]
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Setup Node.js environment
+ uses: actions/setup-node@v2
+ with:
+ node-version: "20"
+ - name: Change directory to backend and install dependencies
+ run: |
+ cd backend
+ npm install
+ - name: Run postgres DB migration files
+ env:
+ DB_CONNECTION_URI: ${{ secrets.DB_CONNECTION_URI }}
+ run: npm run migration:latest
gamma-deployment:
name: Deploy to gamma
runs-on: ubuntu-latest
- needs: [infisical-image]
+ needs: [postgres-migration]
steps:
- name: ☁️ Checkout source
uses: actions/checkout@v3
@@ -90,7 +108,7 @@ jobs:
- 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 --wait --install
+ helm upgrade infisical infisical-helm-charts/infisical-standalone --values values.yaml --wait --install
if [[ $(helm status infisical) == *"FAILED"* ]]; then
echo "Helm upgrade failed"
exit 1