Skip to content

Commit

Permalink
Add deploy step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed May 29, 2024
1 parent 0e7fab7 commit c8ba42a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,19 @@ jobs:
build-args: |
DEPS_FLAGS=--no-dev
# deploy:
# runs-on: ubuntu-latest
deploy:
runs-on: ubuntu-latest

steps:
- id: build_version
run: |
echo "build_version=$(echo ${GITHUB_SHA} | cut -c1-12)" >> $GITHUB_ENV
- name: Trigger deploy
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.OPS_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/gi0baro/ops/dispatches \
-d '{"event_type":"deploy_emmett-sh","client_payload":{"build_tag": "${{ env.build_version }}"}}'

0 comments on commit c8ba42a

Please sign in to comment.