File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,20 @@ jobs:
35
35
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
36
36
restore-keys : |
37
37
${{ runner.os }}-go-
38
+ - name : Login to gcloud registry
39
+ id : gcloud
40
+
41
+ with :
42
+ account_key : ${{ secrets.GCLOUD_KEY }}
38
43
- name : Release
39
44
if : github.event.release.tag_name
40
45
env :
41
46
KUBECTL : ${{ steps.kubectl.outputs.kubectl-path }}
42
47
QUAY_IO_PASSWORD : ${{ secrets.QUAY_IO_PASSWORD }}
43
48
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
49
TAGGED_VERSION : ${{ github.event.release.tag_name }}
50
+ GCR_USERNAME : ${{ steps.gcloud.outputs.username }}
51
+ GCR_PASSWORD : ${{ steps.gcloud.outputs.password }}
45
52
run : |
46
53
docker login quay.io --username "solo-io+solobot" --password $QUAY_IO_PASSWORD
47
54
make install-deps build-images operator-gen manifest-gen publish-images upload-github-release-assets publish-docs
Original file line number Diff line number Diff line change
1
+ changelog :
2
+ - type : NON_USER_FACING
3
+ description : CI/CD login to gcloud before trying to push docs image to GCR
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ SERVE_AS_LATEST_TAG:=$(VERSION)-latest
79
79
# # don't bother generating manifest, just copy/modify from docs-prod repo
80
80
# docker-push-docs: site-release manifest
81
81
docker-push-docs : site-release
82
+ @echo " ${GCR_PASSWORD} " | docker login -u ${GCR_USERNAME} --password-stdin gcr.io
82
83
docker build \
83
84
--build-arg VERSION=latest \
84
85
--build-arg PRODUCT_SCOPE=$(PRODUCT_SCOPE ) \
You can’t perform that action at this time.
0 commit comments