Skip to content

Commit

Permalink
Update glue to use JWT auth
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Nov 1, 2023
1 parent 54d04c1 commit 1d9a03a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- '**'
pull_request:

permissions:
id-token: write
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -114,7 +118,9 @@ jobs:
$TAG_NAME \
artifacts/installer-chia-healthcheck*/*.deb
- uses: Chia-Network/actions/github/jwt@main

- name: Trigger apt repo update
run: |
curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"release_version":"${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-healthcheck/${{ github.sha }}/start
curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"release_version":"${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-healthcheck/${{ github.sha }}/success/deploy
curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"release_version":"${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-healthcheck/${{ github.sha }}/start
curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"release_version":"${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-healthcheck/${{ github.sha }}/success/deploy

0 comments on commit 1d9a03a

Please sign in to comment.