Skip to content

Commit 6af7001

Browse files
authored
Merge pull request #482 from codenrhoden/use-gcr-keyfile-env
Remove E2E use of hardcoded path to key file
2 parents 7d21730 + 5e8aa9b commit 6af7001

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

scripts/e2e/bootstrap_job/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ build: copyspec
1717
push: build
1818
@echo "logging into gcr.io registry with key file"
1919
# TODO hardcoded key file location is a temp workaround
20-
gcloud auth activate-service-account --key-file /root/.capv/keyfile.json
21-
docker login -u _json_key --password-stdin gcr.io </root/.capv/keyfile.json
20+
gcloud auth activate-service-account --key-file $(GCR_KEY_FILE)
21+
docker login -u _json_key --password-stdin gcr.io <"$(GCR_KEY_FILE)"
2222
docker push $(REGISTRY):$(VERSION)
2323
@echo docker logout gcr.io
2424
gcloud auth revoke

scripts/e2e/e2e.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ export_base64_value "TARGET_VM_PREFIX" "${TARGET_VM_PRE}"
182182
go get -u github.com/vmware/govmomi/govc
183183

184184
# Push new container images
185-
# TODO the `-k` flag here is a workaround until we can set GCR_KEY_FILE properly
186-
hack/release.sh -t pr -p -k /root/.capv/keyfile.json
185+
hack/release.sh -t pr -p
187186
cd ./scripts/e2e/bootstrap_job && make push && cd .. || exit 1
188187

189188
# get bootstrap VM

0 commit comments

Comments
 (0)