Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix continuous delivery #1033

Merged
merged 1 commit into from
Apr 4, 2022
Merged
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
7 changes: 5 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ steps:
args:
- build
- gcr.io/$PROJECT_ID/oos-frontend:$TAG_NAME
- --cache-image=gcr.io/$PROJECT_ID/oos-frontend:cache
- --builder=paketobuildpacks/builder:base
- --buildpack=paketo-buildpacks/nginx
# TODO: after nginx/staticfile buildpack fix revert to using latest version
# - --buildpack=paketo-buildpacks/nginx
- --buildpack=docker:///gcr.io/paketo-buildpacks/nginx:0.5.3
- --buildpack=paketo-community/staticfile
- --path=dist/
- --publish
Expand Down Expand Up @@ -56,4 +59,4 @@ steps:
entrypoint: bash
args:
- -c
- $(yes | gcloud run revisions delete --platform managed --region $_REGION `gcloud run revisions list --service frontend --platform managed --region $_REGION --format 'value(name)' | sort -r | tail -n +3 | paste -sd " " -`) || exit 0
- for revision in gcloud run revisions list --service frontend --platform managed --region $_REGION --format 'value(name)' | sort -r | tail -n +3 | paste -sd " " -; do $(yes | gcloud run revisions delete --platform managed --region $_REGION $revision) || exit 0; done;