forked from GoogleCloudPlatform/cloud-build-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove script mode from tests (GoogleCloudPlatform#74)
The nightly tests have started failing. Script mode isn't GA yet so I think some underlying functionality there has changed, causing the tests to fail. Moving back to `entrypoint: /bin/bash`
- Loading branch information
1 parent
d8436bf
commit c624fbc
Showing
6 changed files
with
70 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
steps: | ||
- id: test-builds-successfully | ||
name: gcr.io/google.com/cloudsdktool/cloud-sdk | ||
script: | | ||
cd basic-config | ||
gcloud builds submit --config cloudbuild.yaml | ||
dir: basic-config | ||
entrypoint: /bin/bash | ||
args: | ||
- '-c' | ||
- | | ||
gcloud builds submit --config cloudbuild.yaml | ||
- id: cleanup | ||
name: gcr.io/google.com/cloudsdktool/cloud-sdk | ||
script: | | ||
gcloud compute instances delete my-vm-name --zone us-central1-a | ||
gcloud artifacts docker images delete us-central1-docker.pkg.dev/${PROJECT_ID}/my-docker-repo/myimage | ||
entrypoint: /bin/bash | ||
args: | ||
- '-c' | ||
- | | ||
gcloud compute instances delete my-vm-name --zone us-central1-a | ||
gcloud artifacts docker images delete us-central1-docker.pkg.dev/${PROJECT_ID}/my-docker-repo/myimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
steps: | ||
- id: clone-install-builder | ||
name: gcr.io/google.com/cloudsdktool/cloud-sdk | ||
script: | | ||
git clone https://github.com/GoogleCloudPlatform/cloud-builders-community.git | ||
cd cloud-builders-community/firebase | ||
gcloud builds submit . --project $_TARGET_PROJECT | ||
entrypoint: /bin/bash | ||
args: | ||
- '-c' | ||
- | | ||
git clone https://github.com/GoogleCloudPlatform/cloud-builders-community.git | ||
cd cloud-builders-community/firebase | ||
gcloud builds submit . --project $_TARGET_PROJECT | ||
- id: test-builds-successfully | ||
name: gcr.io/google.com/cloudsdktool/cloud-sdk | ||
dir: deploy-firebase-example/ | ||
script: | | ||
gcloud builds submit --config cloudbuild.yaml --project $_TARGET_PROJECT | ||
entrypoint: /bin/bash | ||
args: | ||
- '-c' | ||
- | | ||
gcloud builds submit --config cloudbuild.yaml --project $_TARGET_PROJECT | ||
- id: cleanup-builder-image | ||
name: gcr.io/google.com/cloudsdktool/cloud-sdk | ||
script: | | ||
gcloud container images delete gcr.io/$_TARGET_PROJECT/firebase --project $_TARGET_PROJECT | ||
entrypoint: /bin/bash | ||
args: | ||
- '-c' | ||
- | | ||
gcloud container images delete gcr.io/$_TARGET_PROJECT/firebase --project $_TARGET_PROJECT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters