Skip to content

Commit

Permalink
add docker buildkit to gcloud build
Browse files Browse the repository at this point in the history
  • Loading branch information
nspmx committed Jul 8, 2024
1 parent 38c5d9f commit 021b9d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/google-registry-gke-playground.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ on:
- poetry.lock
- schema/**
- app/**
- Dockerfile

env:
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ FROM python:3.10 as builder

RUN pip install setuptools wheel poetry==1.8.3

ENV DOCKER_BUILDKIT=1

ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VIRTUALENVS_CREATE=1 \
Expand Down
2 changes: 2 additions & 0 deletions cloudbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ steps:
"--cache-from", "${_GCP_ARTIFACT_REGISTRY_LOCATION}-docker.pkg.dev/${_GCP_PROJECT_ID}/${_GCP_ARTIFACT_REGISTRY_NAME}/${_GCP_IMAGE_NAME}:${_GCP_IMAGE_ENVIRONMENT}",
"."
]
env:
- "DOCKER_BUILDKIT=1"
# [END cloudbuild_image_yaml]
images:
- "${_GCP_ARTIFACT_REGISTRY_LOCATION}-docker.pkg.dev/${_GCP_PROJECT_ID}/${_GCP_ARTIFACT_REGISTRY_NAME}/${_GCP_IMAGE_NAME}:${_GCP_IMAGE_TAG}"
Expand Down

0 comments on commit 021b9d1

Please sign in to comment.