Skip to content

Commit 7ea27c7

Browse files
committed
Fixed version tagging issue
1 parent 7f81a2a commit 7ea27c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/gcp_build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ jobs:
8888
- name: Build and Push Docker image
8989
id: 'build-push'
9090
run: |
91-
9291
IMAGE_URI="europe-west2-docker.pkg.dev/wolfram-evaluation-functions/${{ inputs.environment == 'staging' && 'evaluation-function-staging' || 'evaluation-function' }}/${{inputs.function-name}}:latest"
92+
TAGGED_IMAGE="europe-west2-docker.pkg.dev/wolfram-evaluation-functions/${{ inputs.environment == 'staging' && 'evaluation-function-staging' || 'evaluation-function' }}/${{inputs.function-name}}:${{inputs.image-tag}}"
9393
docker build -t "$IMAGE_URI" .
94-
docker tag "$IMAGE_URI" "${{inputs.image-tag}}"
94+
docker tag "$IMAGE_URI" "$TAGGED_IMAGE"
9595
docker push "$IMAGE_URI"
96+
docker push "$TAGGED_IMAGE"

0 commit comments

Comments
 (0)