Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion run/django/cloudmigrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# [START cloudrun_django_cloudmigrate_yaml_python]
steps:
- id: "Build Container Image"
name: buildpacksio/pack
name: gcr.io/k8s-skaffold/pack
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability, it's better to use a substitution variable for the builder image name. This avoids hardcoding the value and makes it easier to update in one place if needed.

You can add the following to your substitutions block:

  _PACK_IMAGE: gcr.io/k8s-skaffold/pack

And then reference it here.

    name: ${_PACK_IMAGE}

args: ["build", "${_IMAGE_NAME}", "--builder=gcr.io/buildpacks/builder"]

- id: "Push Container Image"
Expand Down
2 changes: 1 addition & 1 deletion run/django/e2e_test_setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ steps:
--project ${PROJECT_ID}"

- id: "Build Container Image"
name: buildpacksio/pack
name: gcr.io/k8s-skaffold/pack
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability, it's better to use a substitution variable for the builder image name. This avoids hardcoding the value and makes it easier to update in one place if needed.

You can add the following to your substitutions block:

  _PACK_IMAGE: gcr.io/k8s-skaffold/pack

And then reference it here.

    name: ${_PACK_IMAGE}

args: ["build", "${_IMAGE_NAME}", "--builder=gcr.io/buildpacks/builder",
"--env", "GOOGLE_PYTHON_VERSION=${_PYTHON_VERSION}"]

Expand Down