This repository was archived by the owner on Feb 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,19 @@ jobs:
26
26
restore-keys : |
27
27
${{ runner.os }}-docker-buildx-${{ matrix.app }}-${{ hashFiles('**/poetry.lock') }}-
28
28
29
- - uses : aws-actions/configure-aws-credentials@v2
29
+ - uses : google-github-actions/auth@v1
30
+ id : gcp
30
31
with :
31
- role-to-assume : ${{ secrets.AWS_ROLE }}
32
- role-session-name : ${{ github.run_id }}
33
- aws-region : us-east-1
32
+ token_format : access_token
33
+ workload_identity_provider : ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
34
+ service_account : ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
35
+ access_token_lifetime : 150s
34
36
35
- - uses : aws-actions/amazon-ecr-login@v1
36
- id : login-ecr
37
+ - uses : docker/login-action@v2
37
38
with :
38
- registry-type : public
39
+ registry : us-central1-docker.pkg.dev
40
+ username : oauth2accesstoken
41
+ password : ${{ steps.gcp.outputs.access_token }}
39
42
40
43
- name : Get short Git SHA
41
44
id : short-sha
46
49
- uses : docker/metadata-action@v4
47
50
id : meta
48
51
with :
49
- images : ${{ steps.login-ecr.outputs.registry }} /wafflehacks/application-portal- ${{ matrix.app }}
52
+ images : us-central1-docker.pkg.dev /wafflehacks-production /application-portal/ ${{ matrix.app }}
50
53
tags : |
51
54
type=ref,event=branch
52
55
type=ref,event=pr
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ app = "application-portal-api"
7
7
primary_region = " yyz"
8
8
9
9
[build ]
10
- image = " public.ecr.aws /wafflehacks/application-portal- api:sha-SHORT_SHA"
10
+ image = " us-central1-docker.pkg.dev /wafflehacks-production /application-portal/ api:sha-SHORT_SHA"
11
11
12
12
[deploy ]
13
13
release_command = " migrate"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ app = "application-portal-tasks"
7
7
primary_region = " yyz"
8
8
9
9
[build ]
10
- image = " public.ecr.aws /wafflehacks/application-portal- tasks:sha-SHORT_SHA"
10
+ image = " us-central1-docker.pkg.dev /wafflehacks-production /application-portal/ tasks:sha-SHORT_SHA"
11
11
12
12
[deploy ]
13
13
strategy = " rolling"
You can’t perform that action at this time.
0 commit comments