Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
update gamma deploy workflow
Maidul Islamcd8314161722
diff --git a/.github/workflows/build-staging-img.yml b/.github/workflows/build-staging-and-deploy.ymlsimilarity index 75%rename from .github/workflows/build-staging-img.ymlrename to .github/workflows/build-staging-and-deploy.ymlindex 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-infisicaltags: 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 pushuses: depot/build-push-action@v1with:@@ -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:latestgamma-deployment:name: Deploy to gammaruns-on: ubuntu-latest- needs: [infisical-image]+ needs: [postgres-migration]steps:- name: ☁️ Checkout sourceuses: actions/checkout@v3@@ -90,7 +108,7 @@ jobs:- name: Download helm values to file and upgrade gamma deployrun: |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 --installif [[ $(helm status infisical) == *"FAILED"* ]]; thenecho "Helm upgrade failed"exit 1