Skip to content

Commit

Permalink
build: specify which Python version to use when building Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
lvaylet committed May 17, 2024
1 parent 90d2797 commit 8e90969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-push-to-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
PYTHON_VERSION=3.9
1 change: 1 addition & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ steps:
script: |
docker build \
-t gcr.io/$_GCR_PROJECT_ID/slo-generator:${_VERSION} \
--build-arg PYTHON_VERSION=3.9 \
.
substitutions:
Expand Down

0 comments on commit 8e90969

Please sign in to comment.