Skip to content

Commit

Permalink
add deploy workflows for us and eu
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-ray-wilson committed Nov 20, 2024
1 parent a27a944 commit e82ddee
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 6 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/eu-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: EU Deploy

on:
workflow_dispatch:

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

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Run Checkly Tests
run: npx checkly test --location=eu-central-1 --reporter=ci
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 }}

- name: Deploy US to Checkly
run: npx checkly deploy --force --config=./checkly.eu.config.ts
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 }}
INSTANCE_ID: ${{ secrets.INSTANCE_ID }}
SITE_URL: ${{ secrets.SITE_URL }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
11 changes: 6 additions & 5 deletions .github/workflows/gamma-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Gamma Deploy

on:
pull_request:
types:
- closed
branches:
- main
# TODO: add back once we have dedicated agent?
# pull_request:
# types:
# - closed
# branches:
# - main
workflow_dispatch:

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/gamma-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
- name: Run Checkly Tests
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 }}
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/us-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: US Deploy

on:
workflow_dispatch:

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

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Run Checkly Tests
run: npx checkly test --location=us-east-1 --reporter=ci
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 }}

- name: Deploy US to Checkly
run: npx checkly deploy --force --config=./checkly.us.config.ts
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 }}
INSTANCE_ID: ${{ secrets.INSTANCE_ID }}
SITE_URL: ${{ secrets.SITE_URL }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}

0 comments on commit e82ddee

Please sign in to comment.