Skip to content

Commit

Permalink
wip: test the usage of serialized dynamic secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Jan 8, 2025
1 parent 355c25e commit 46ac0a9
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions .github/workflows/application-js-cloudflare-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,29 @@ name: "CI / Application JS Cloudflare Feature"

on:
workflow_call:
inputs:
DEPLOY_SECRETS:
required: true
type: string
secrets:
GH_TOKEN:
required: true
CLOUDFLARE_ACCOUNT_ID:
required: true
CLOUDFLARE_ZONE_ID:
required: true
CLOUDFLARE_API_TOKEN:
required: true
ZETA_HOUSE_ENV:
required: true
ZETA_HOUSE_SUPABASE_URL:
required: true
ZETA_HOUSE_SUPABASE_KEY:
required: true
ZETA_HOUSE_SENDGRID_API_KEY:
required: true
ZETA_HOUSE_GOOGLE_MAPS_API_KEY:
required: true
# CLOUDFLARE_ACCOUNT_ID:
# required: true
# CLOUDFLARE_ZONE_ID:
# required: true
# CLOUDFLARE_API_TOKEN:
# required: true
# ZETA_HOUSE_ENV:
# required: true
# ZETA_HOUSE_SUPABASE_URL:
# required: true
# ZETA_HOUSE_SUPABASE_KEY:
# required: true
# ZETA_HOUSE_SENDGRID_API_KEY:
# required: true
# ZETA_HOUSE_GOOGLE_MAPS_API_KEY:
# required: true

jobs:
# Lint the code
Expand Down Expand Up @@ -82,21 +86,18 @@ jobs:
with:
name: public
path: ./public
- name: Setup Deploy Secrets
run: |
echo "${{ inputs.DEPLOY_SECRETS }}" | jq -r 'to_entries | .[] | "\(.key)=\(.value)"' >> $GITHUB_ENV
- name: Run deployment
env:
name: "feature/${{ github.ref_name }}"
url: "https://${{ github.ref_name }}.dev.zeta.house"
GH_TOKEN: ${{ secrets.GH_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
ZETA_HOUSE_ENV: ${{ secrets.ZETA_HOUSE_ENV }}
ZETA_HOUSE_SUPABASE_URL: ${{ secrets.ZETA_HOUSE_SUPABASE_URL }}
ZETA_HOUSE_SUPABASE_KEY: ${{ secrets.ZETA_HOUSE_SUPABASE_KEY }}
ZETA_HOUSE_SENDGRID_API_KEY: ${{ secrets.ZETA_HOUSE_SENDGRID_API_KEY }}
ZETA_HOUSE_GOOGLE_MAPS_API_KEY: ${{ secrets.ZETA_HOUSE_GOOGLE_MAPS_API_KEY }}
run: |
echo 'Perform service deployment for feature'
echo "$SECRET1"
echo "$SECRET2"
echo "$SECRET3"
nix develop .#ci --command bash -c $'
npm run deploy -- \
--feature "$GITHUB_REF_NAME" \
Expand Down

0 comments on commit 46ac0a9

Please sign in to comment.