Skip to content

Commit

Permalink
Merge pull request #11 from stefda/traffic-to-latest
Browse files Browse the repository at this point in the history
Send traffic to latest revision
  • Loading branch information
stefda authored Feb 28, 2021
2 parents cd3f617 + 0637a61 commit e898201
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ gcloud auth configure-docker

docker push "$INPUT_IMAGE"

gcloud beta run deploy "$INPUT_SERVICE" \
gcloud run deploy "$INPUT_SERVICE" \
--image "$INPUT_IMAGE" \
--region "$INPUT_REGION" \
--platform managed \
--region "$INPUT_REGION" \
--allow-unauthenticated \
${ENV_FLAG}

gcloud run services update-traffic "$INPUT_SERVICE" --to-latest \
--platform managed \
--region "$INPUT_REGION"

0 comments on commit e898201

Please sign in to comment.