Thanks to visit codestin.com
Credit goes to github.com

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
6 changes: 3 additions & 3 deletions .github/workflows/deploy-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
run: gcloud auth configure-docker --quiet

- name: Build Docker image
run: docker build . -t $IMAGE_NAME:$REF_NAME
run: docker build . -t $IMAGE_NAME:${REF_NAME//[^a-z0-9]/-}

- name: Push Docker image
run: docker push $IMAGE_NAME:$REF_NAME
run: docker push $IMAGE_NAME:${REF_NAME//[^a-z0-9]/-}

- name: Deploy app
run: |
gcloud run deploy turnilo-${REF_NAME//[^a-z0-9]/-} \
--image $IMAGE_NAME:$REF_NAME \
--image $IMAGE_NAME:${REF_NAME//[^a-z0-9]/-} \
--region europe-west1 \
--platform managed \
--allow-unauthenticated \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/undeploy-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:

- name: Delete Docker image
run: |
gcloud container images delete $IMAGE_NAME:$REF_NAME --quiet
gcloud container images delete $IMAGE_NAME:${REF_NAME//[^a-z0-9]/-} --quiet