-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (65 loc) · 2.18 KB
/
deploy.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
name: Deploy cuiloa
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-container:
name: Build container
uses: ./.github/workflows/container.yml
secrets: inherit
permissions:
contents: read
packages: write
deploy-preview:
name: Deploy cuiloa to preview
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'
needs:
- build-container
runs-on: ubuntu-latest
steps:
- id: gcloudauth
uses: google-github-actions/auth@v0
with:
workload_identity_provider: 'projects/1006847873719/locations/global/workloadIdentityPools/gh-runner-pool/providers/my-provider'
service_account: '[email protected]'
- name: get gke credentials
uses: google-github-actions/get-gke-credentials@v0
with:
cluster_name: testnet
project_id: penumbra-sl-testnet
location: us-central1
# We assume that cuiloa has been deployed to the cluster already.
# This task merely "bounces" the service, so that a fresh container is pulled.
- name: bounce cuiloa
run: kubectl rollout restart deployment cuiloa-preview
deploy-testnet:
name: Deploy cuiloa to testnet
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'
needs:
- build-container
runs-on: ubuntu-latest
steps:
- id: gcloudauth
uses: google-github-actions/auth@v0
with:
workload_identity_provider: 'projects/1006847873719/locations/global/workloadIdentityPools/gh-runner-pool/providers/my-provider'
service_account: '[email protected]'
- name: get gke credentials
uses: google-github-actions/get-gke-credentials@v0
with:
cluster_name: testnet
project_id: penumbra-sl-testnet
location: us-central1
# We assume that cuiloa has been deployed to the cluster already.
# This task merely "bounces" the service, so that a fresh container is pulled.
- name: bounce cuiloa
run: kubectl rollout restart deployment cuiloa-testnet