Skip to content

Commit

Permalink
[DDO-3641] Fix webhook proxy deployment (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-r-warren authored May 2, 2024
1 parent d704236 commit f7ad047
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/sherlock-deploy-webhook-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- ".github/workflows/sherlock-webhook-proxy-deploy.yaml"
- ".github/workflows/sherlock-deploy-webhook-proxy.yaml"
- "sherlock-webhook-proxy/**"
- "sherlock-go-client/**"
- "!**/*.md"
Expand All @@ -20,7 +20,8 @@ jobs:
tag-build-publish:
runs-on: ubuntu-latest
permissions:
contents: "read"
# Push to the main branch
contents: "write"
# Use OIDC for workload identity
id-token: "write"
steps:
Expand All @@ -43,3 +44,11 @@ jobs:

- name: Deploy
run: make deploy-webhook-proxy

- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: |
[sherlock-deploy-webhook-proxy] generated from ${{ github.sha }}
commit_user_name: broadbot
commit_user_email: [email protected]
1 change: 1 addition & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ generate-mocks:
# go.mod)
deploy-webhook-proxy:
cd sherlock-webhook-proxy \
&& go mod tidy \
&& go mod vendor \
&& gcloud functions deploy sherlock-webhook-proxy \
--gen2 \
Expand Down

0 comments on commit f7ad047

Please sign in to comment.