Skip to content

Commit cbb00c2

Browse files
committed
switch orchard webhooks from vars to secrets for deploy step
1 parent 32d1021 commit cbb00c2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build-images.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,21 @@ jobs:
104104
deploy:
105105
runs-on: ubuntu-22.04
106106
needs: [editor-backend, nextjs]
107-
if: vars.ORCHARD_WEBHOOK_NEXTJS != '' || vars.ORCHARD_WEBHOOK_BACKEND != ''
107+
if: secrets.ORCHARD_WEBHOOK_NEXTJS != '' || secrets.ORCHARD_WEBHOOK_BACKEND != ''
108108
environment: production
109109
steps:
110110
- name: Trigger Next.js Orchard deploy
111-
if: vars.ORCHARD_WEBHOOK_NEXTJS != ''
111+
if: secrets.ORCHARD_WEBHOOK_NEXTJS != ''
112112
run: |
113-
curl -sS -X POST "${{ vars.ORCHARD_WEBHOOK_NEXTJS }}" \
113+
curl -sS -X POST "${{ secrets.ORCHARD_WEBHOOK_NEXTJS }}" \
114114
-H "Content-Type: application/json" \
115115
-d '{"tag":"${{ github.sha }}"}'
116116
echo "Next.js webhook dispatched"
117117
118118
- name: Trigger editor-backend Orchard deploy
119-
if: vars.ORCHARD_WEBHOOK_BACKEND != ''
119+
if: secrets.ORCHARD_WEBHOOK_BACKEND != ''
120120
run: |
121-
curl -sS -X POST "${{ vars.ORCHARD_WEBHOOK_BACKEND }}" \
121+
curl -sS -X POST "${{ secrets.ORCHARD_WEBHOOK_BACKEND }}" \
122122
-H "Content-Type: application/json" \
123123
-d '{"tag":"${{ github.sha }}"}'
124124
echo "Editor backend webhook dispatched"

0 commit comments

Comments
 (0)