@@ -15,7 +15,7 @@ concurrency:
1515
1616jobs :
1717 deploy_relay :
18- name : Plan personal relay
18+ name : Deploy personal relay
1919 runs-on : blacksmith-8vcpu-ubuntu-2404
2020 timeout-minutes : 15
2121 environment :
5252 args:
5353 - --filter=t3code-relay...
5454
55- - name : Plan personal relay stage
55+ - name : Deploy personal relay stage
5656 id : deploy
57- run : vp run --filter t3code-relay deploy --stage dev_julius_effect112 --dry-run
57+ run : vp run --filter t3code-relay deploy --stage dev_julius_effect112 --yes --github-output
5858 env :
5959 CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
6060 PLANETSCALE_API_TOKEN_ID : ${{ secrets.PLANETSCALE_API_TOKEN_ID }}
6363 CLERK_SECRET_KEY : ${{ secrets.CLERK_SECRET_KEY }}
6464 APNS_PRIVATE_KEY : ${{ secrets.APNS_PRIVATE_KEY }}
6565
66+ - name : Verify public endpoints
67+ env :
68+ RELAY_URL : ${{ steps.deploy.outputs.relay_url }}
69+ run : |
70+ test "$RELAY_URL" = "https://relay-dev-julius-effect112.$RELAY_API_ZONE_NAME"
71+ curl --fail-with-body --retry 8 --retry-all-errors --retry-delay 5 "$RELAY_URL/health" | jq -e '.ok == true and .service == "relay"'
72+ curl --fail-with-body "$RELAY_URL/.well-known/oauth-authorization-server" | jq -e 'type == "object"'
73+ curl --fail-with-body "$RELAY_URL/.well-known/oauth-protected-resource" | jq -e 'type == "object"'
74+ echo "Personal relay: $RELAY_URL" >> "$GITHUB_STEP_SUMMARY"
75+
76+ - name : Check convergence
77+ run : vp run --filter t3code-relay deploy --stage dev_julius_effect112 --dry-run
78+ env :
79+ CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
80+ PLANETSCALE_API_TOKEN_ID : ${{ secrets.PLANETSCALE_API_TOKEN_ID }}
81+ PLANETSCALE_API_TOKEN : ${{ secrets.PLANETSCALE_API_TOKEN }}
82+ AXIOM_TOKEN : ${{ secrets.AXIOM_TOKEN }}
83+ CLERK_SECRET_KEY : ${{ secrets.CLERK_SECRET_KEY }}
84+ APNS_PRIVATE_KEY : ${{ secrets.APNS_PRIVATE_KEY }}
0 commit comments