Skip to content

Commit

Permalink
transfer the commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Oct 6, 2023
1 parent c65f77e commit 1df6456
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ jobs:
- name: Deploy
env:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
json="$(jq -c '{"image":{"repository": (.image | split(":")[0]), "tag": (.image | split(":")[1]), digest: .imageDigest}}' < target/jib-image.json)"
curl -X POST \
--fail \
-F token=${DEPLOY_TOKEN} \
-F ref=main \
-F "token=$DEPLOY_TOKEN" \
-F "ref=main" \
-F "variables[TARGET]=website" \
-F "variables[IMAGE_VALUES]=$json" \
-F "variables[COMMIT_MESSAGE]=$COMMIT_MESSAGE" \
https://cubyte.dev/api/v4/projects/373/trigger/pipeline

0 comments on commit 1df6456

Please sign in to comment.