From 9db7ecb1c55514cf2e8e2d60fa3657c97751497f Mon Sep 17 00:00:00 2001 From: David Haley Date: Thu, 27 Jun 2024 17:16:25 -0700 Subject: [PATCH] Switch from building on GitHub Actions to cloud build Invoke cloud build in the GCP project, rather than build here. That means we'll need a way to move the container from Google to Docker Hub. Previously, we'd have simply pushed the container we just built to both. --- .github/workflows/main.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee1ace2..2d92d8f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,13 +30,6 @@ jobs: - name: "Use gcloud CLI" run: "gcloud info" - - name: "Docker auth" - run: |- - gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet - - - name: Build image - run: docker build . --file Dockerfile --tag ${{ env.GAR_LOCATION }} + - name: Trigger cloud build + run: ./cloud-build.sh working-directory: container - - - name: Push image - run: docker push ${{ env.GAR_LOCATION }}