-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 967 Bytes
/
comment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: comment
on:
issue_comment:
types: [created]
env:
SERVICE: party
jobs:
comment:
runs-on: ubuntu-latest
if: contains(github.event.comment.body, '/deploy')
steps:
- uses: actions/checkout@v3
- name: Authenticate with Google Cloud
id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCR_KEY }}
- name: Setup Google Cloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GOOGLE_PROJECT_ID }}
- uses: onsdigital/ras-rm-spinnaker-action@main
with:
comment-body: ${{ github.event.comment.body }}
gcp-project: ${{ secrets.GOOGLE_PROJECT_ID }}
bot-token: ${{ secrets.BOT_TOKEN }}
spinnaker-topic: ${{ secrets.SPINNAKER_TOPIC }}
artifact-bucket: ${{ secrets.ARTIFACT_BUCKET }}
helm-chart: ${{ env.SERVICE }}/${{ env.SERVICE }}-latest.tgz