Skip to content

Commit c8b52d2

Browse files
committed
feat: implement CD via really awesome deployment server :))
1 parent 5a5da94 commit c8b52d2

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,18 @@ jobs:
9595
docker buildx imagetools create \
9696
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
9797
$(cat /tmp/digests/*)
98+
99+
deploy:
100+
needs: merge
101+
runs-on: ubuntu-latest
102+
environment: production
103+
permissions:
104+
contents: read
105+
steps:
106+
- name: Trigger deployment
107+
run: |
108+
curl -sf -X POST \
109+
-H "Authorization: Bearer ${{ secrets.DEPLOY_JWT }}" \
110+
-H "Content-Type: application/json" \
111+
-d '{"service": "mesastream"}' \
112+
"${{ secrets.DEPLOY_URL }}"

0 commit comments

Comments
 (0)