File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed
Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [master]
88
9+ permissions :
10+ contents : read
11+ id-token : write
12+
913jobs :
1014 test :
1115 runs-on : ubuntu-latest
12- permissions :
13- contents : read
14- packages : write
15- id-token : write
1616 steps :
1717 - name : Checkout code
1818 uses : actions/checkout@v4
@@ -72,28 +72,23 @@ jobs:
7272 - name : Checkout code
7373 uses : actions/checkout@v4
7474
75- - name : Set up QEMU
76- uses : docker/setup-qemu-action@v2
77-
78- - name : Set up Docker Buildx
79- uses : docker/setup-buildx-action@v2
80-
8175 - name : Authenticate to Google Cloud
8276 uses : google-github-actions/auth@v2
8377 with :
84- token_format : access_token
78+ token_format : id_token
8579 workload_identity_provider : ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
8680 service_account : ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
8781
8882 - name : Set up Docker to use gcloud as a credential helper
8983 run : |
9084 gcloud auth configure-docker us-central1-docker.pkg.dev
9185
92- - name : Build and Push Docker Image
93- run : |
94- IMAGE="us-central1-docker.pkg.dev/YOUR_PROJECT/YOUR_REPO/YOUR_IMAGE:latest"
95- docker build -t $IMAGE .
96- docker push $IMAGE
86+
87+ - name : Set up QEMU
88+ uses : docker/setup-qemu-action@v2
89+
90+ - name : Set up Docker Buildx
91+ uses : docker/setup-buildx-action@v2
9792
9893
9994 - name : Build and push Linux images (amd64 + arm64)
You can’t perform that action at this time.
0 commit comments