Skip to content

Commit 5d084e3

Browse files
committed
fix: ci tests
1 parent 7c4e742 commit 5d084e3

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,29 @@ jobs:
7878
- name: Set up Docker Buildx
7979
uses: docker/setup-buildx-action@v2
8080

81-
- name: Log in to GHCR
82-
uses: docker/login-action@v2
81+
- name: Authenticate to Google Cloud
82+
uses: google-github-actions/auth@v2
8383
with:
84-
registry: ghcr.io
85-
username: ${{ github.actor }}
86-
password: ${{ secrets.GITHUB_TOKEN }}
84+
token_format: access_token
85+
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
86+
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
87+
88+
- name: Set up Docker to use gcloud as a credential helper
89+
run: |
90+
gcloud auth configure-docker us-central1-docker.pkg.dev
91+
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
97+
8798
8899
- name: Build and push Linux images (amd64 + arm64)
89100
uses: docker/build-push-action@v4
90101
with:
91102
context: .
92103
push: true
93-
tags: ghcr.io/query-farm/python-airport-test-server:latest
104+
tags: us-central1-docker.pkg.dev/airport-ci-service/python-airport-test-server/python-airport-test-server:latest
94105
platforms: linux/amd64
95106

0 commit comments

Comments
 (0)