-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (29 loc) · 1.09 KB
/
comment.yml
File metadata and controls
32 lines (29 loc) · 1.09 KB
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: frontstage
jobs:
comment:
runs-on: ubuntu-latest
if: contains(github.event.comment.body, '/deploy')
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Authenticate with Google Cloud
id: auth
uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
with:
credentials_json: ${{ secrets.GCR_KEY }}
- name: Setup Google Cloud SDK
uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a # v2.1.4
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