-
Notifications
You must be signed in to change notification settings - Fork 15
59 lines (55 loc) · 1.55 KB
/
provider-google-cloud-demo.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
name: google-cloud-demo
on:
workflow_call:
jobs:
google-container-demo:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
- name: "authenticate to google cloud"
uses: "google-github-actions/auth@v2"
with:
token_format: 'access_token'
workload_identity_provider: "${{ secrets.GOOGLE_FEDERATION_WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ secrets.GOOGLE_FEDERATION_SERVICE_ACCOUNT }}"
- name: "set up cloud sdk"
uses: "google-github-actions/setup-gcloud@v2"
- id: "gcloud"
name: "gcloud"
run: |
gcloud builds submit --pack image=${{secrets.GOOGLE_ARTIFACT}}:${{ github.sha }},builder=heroku/buildpacks:20
google-deploy-hexa-demo:
runs-on: ubuntu-latest
needs: [ google-container-demo ]
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
- name: build-image
run: |
echo "wip"
google-container-open-policy-agent:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
- name: build-image
run: |
echo "wip"
google-deploy-hexa-open-policy-agent:
runs-on: ubuntu-latest
needs: [ google-container-open-policy-agent ]
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
- name: build-image
run: |
echo "wip"