diff --git a/.github/workflows/application-js-cloudflare-feature.yml b/.github/workflows/application-js-cloudflare-feature.yml index 0c313c0..465ed19 100644 --- a/.github/workflows/application-js-cloudflare-feature.yml +++ b/.github/workflows/application-js-cloudflare-feature.yml @@ -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 @@ -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" \