Skip to content
Open
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 memorystore/redis/gce_deployment/deploy.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ GOOS=linux GOARCH=amd64 go build -v -o app ../main.go
# Add the app binary
tar -cvf app.tar app
# Copy to GCS bucket
gsutil cp app.tar gs://"$GCS_BUCKET_NAME"/gce/
gcloud storage cp app.tar gs://"$GCS_BUCKET_NAME"/gce/

# Create an instance
gcloud compute instances create my-instance \
--image-family=debian-9 \
--image-family=debian-11 \
--image-project=debian-cloud \
--machine-type=g1-small \
--machine-type=e2-small \
--scopes cloud-platform \
--metadata-from-file startup-script=startup-script.sh \
--metadata gcs-bucket="$GCS_BUCKET_NAME",redis-host="$REDISHOST",redis-port="$REDISPORT" \
Expand Down
2 changes: 1 addition & 1 deletion memorystore/redis/gce_deployment/startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi
chmod +x google-fluentd-install.sh && ./google-fluentd-install.sh
service google-fluentd restart &

gsutil cp gs://"$GCS_BUCKET_NAME"/gce/app.tar /app.tar
gcloud storage cp gs://"$GCS_BUCKET_NAME"/gce/app.tar /app.tar
mkdir -p /app
tar -x -f /app.tar -C /app
chmod +x /app/app
Expand Down
5 changes: 3 additions & 2 deletions testing/cloudbuild/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ steps:
- REPORT_REPO=golang-samples

# Get the credentials for integration tests.
- name: gcr.io/cloud-builders/gsutil
args: ['cp', 'gs://golang-samples-secrets/golang-samples-tests-4fbf85dd0f24.json', 'key.json']
- name: gcr.io/google.com/cloudsdktool/google-cloud-cli
entrypoint: gcloud
args: ['storage', 'cp', 'gs://golang-samples-secrets/golang-samples-tests-4fbf85dd0f24.json', 'key.json']

# Run the tests
- name: gcr.io/$PROJECT_ID/go19
Expand Down
2 changes: 1 addition & 1 deletion testing/gimmeproj/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ cross:
GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -o bin/windows_amd64/gimmeproj.exe

upload: cross
gsutil -m cp -a public-read -r bin/* gs://gimme-proj/
gcloud storage cp -r bin/* gs://gimme-proj/ --predefined-acl=public-read
Loading