Skip to content

Commit

Permalink
Switch from building on GitHub Actions to cloud build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dchaley authored Jun 28, 2024
1 parent 97c9d5d commit 9db7ecb
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 9db7ecb

Please sign in to comment.