-
Notifications
You must be signed in to change notification settings - Fork 27
54 lines (42 loc) · 1.68 KB
/
redeploy-content-repos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Redeploy Content Repo Previews
# When the dev-portal/main branch is pushed to, redeploy the `main` branches of
# the listed docs content repositories. The redeploys are triggered through a
# Deploy Hook created for each repository's Vercel project. These can be found
# in the Git settings within the Vercel project.
#
# For consistency and traceability, each new secret should be named using the
# following convention:
#
# VERCEL_DEPLOY_HOOK_<vercel-project-slug>
#
# And new Deploy Hooks should be named:
#
# "Re-deploy when dev-portal/main updates"
#
on:
push:
branches:
- main
jobs:
redeploy-content-repo-previews:
runs-on: ubuntu-latest
steps:
- name: Trigger "boundary" deploy
run: curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_BOUNDARY }}
- name: Trigger "cloud-docs-developer-preview (HCP)" deploy
run: curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_CLOUD_DOCS_DEVELOPER_PREVIEW }}
- name: Trigger "consul" deploy
run: curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_CONSUL }}
- name: Trigger "nomad" deploy
run: curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_NOMAD }}
- name: Trigger "packer" deploy
run: curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_PACKER }}
# TODO add Terraform
- name: Trigger "vagrant" deploy
run: curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_VAGRANT }}
- name: Trigger "vault" deploy
run: curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_VAULT }}
- name: Trigger "waypoint" deploy
run: curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_WAYPOINT }}
- name: Trigger "HVD" deploy
run: curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_HVD }}