Skip to content

Commit

Permalink
test deploy and updated test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-ray-wilson committed Nov 19, 2024
1 parent 8039f92 commit 53934fa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Checkly
name: Gamma Deploy

on:
pull_request:
Expand All @@ -9,10 +9,10 @@ on:
workflow_dispatch:

jobs:
deploy:
gamma-deploy:
runs-on: ubuntu-latest
environment:
name: prod
name: gamma
steps:
- uses: actions/checkout@v3

Expand All @@ -24,11 +24,15 @@ jobs:
- name: Install dependencies
run: npm install

- name: Deploy to Checkly
- name: Deploy Gamma to Checkly
run: npx checkly deploy --force
env:
CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }}
CHECKLY_ACCOUNT_ID: ${{ secrets.CHECKLY_ACCOUNT_ID }}
PAGER_DUTY_ACCOUNT: ${{ secrets.PAGER_DUTY_ACCOUNT }}
PAGER_DUTY_SERVICE_NAME: ${{ secrets.PAGER_DUTY_SERVICE_NAME }}
PAGER_DUTY_SERVICE_KEY: ${{ secrets.PAGER_DUTY_SERVICE_KEY }}
PAGER_DUTY_SERVICE_KEY: ${{ secrets.PAGER_DUTY_SERVICE_KEY }}
INSTANCE_ID: ${{ secrets.INSTANCE_ID }}
SITE_URL: ${{ secrets.SITE_URL }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
7 changes: 6 additions & 1 deletion .github/workflows/gamma-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ jobs:
sleep 10
- name: Run Checkly Tests
run: INSTANCE_ID=${{ secrets.INSTANCE_ID }} npx checkly test --private-location=infisical-gamma --reporter=ci -e SITE_URL=${{ secrets.SITE_URL }} CLIENT_ID=${{ secrets.CLIENT_ID }} CLIENT_SECRET=${{ secrets.CLIENT_SECRET }}
run: npx checkly test --private-location=infisical-gamma --reporter=ci
# run: npx checkly test --private-location=infisical-gamma --reporter=ci -e SITE_URL=${{ secrets.SITE_URL }} CLIENT_ID=${{ secrets.CLIENT_ID }} CLIENT_SECRET=${{ secrets.CLIENT_SECRET }}
env:
CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }}
CHECKLY_ACCOUNT_ID: ${{ secrets.CHECKLY_ACCOUNT_ID }}
INSTANCE_ID: ${{ secrets.INSTANCE_ID }}
SITE_URL: ${{ secrets.SITE_URL }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
2 changes: 1 addition & 1 deletion src/__checks__/secrets/secrets-group.check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { pagerDutyChannel } from "../../alert-channels";
import { getLocations } from "../../locations";

export const secretsGroup = new CheckGroup(`secrets-group`, {
name: `Secrets Group Check (${process.env.INSTANCE_ID?.toUpperCase()})`,
name: `Secrets Group Check [${process.env.INSTANCE_ID?.toUpperCase()}]`,
activated: true,
muted: false,
concurrency: 50,
Expand Down

0 comments on commit 53934fa

Please sign in to comment.