Skip to content

Commit

Permalink
Add credentials to push to private docker repo (#4)
Browse files Browse the repository at this point in the history
* Add credentials to push to private docker repo
* Small cloudbuild correction
  • Loading branch information
marcogschmidt authored and soloio-bulldozer[bot] committed Aug 13, 2019
1 parent b91846d commit 2301b8f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
6 changes: 3 additions & 3 deletions changelog/v0.0.1/add-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
changelog:
- type: NEW_FEATURE
description: Added CI configuration to project.
issueLink: https://github.com/solo-io/ext-auth-plugins/issues/2
- type: NEW_FEATURE
description: Added CI configuration to project.
issueLink: https://github.com/solo-io/ext-auth-plugins/issues/2
3 changes: 3 additions & 0 deletions changelog/v0.0.1/add-quay-permissions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changelog:
- type: NON_USER_FACING
description: Added encrypted credentials to push images to private docker repo.
13 changes: 12 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ steps:
- 'BUILD_ID=$BUILD_ID'
dir: './gopath/src/github.com/solo-io/ext-auth-plugins'

- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args: ['-c', 'docker login quay.io --username "solo-io+solobot" --password $$QUAY_IO_PASSWORD']
secretEnv: ['QUAY_IO_PASSWORD']
id: 'docker-login'

- name: 'gcr.io/$PROJECT_ID/go-make:0.1.12'
args: ['publish-examples']
env:
Expand All @@ -46,4 +52,9 @@ steps:
- 'TAGGED_VERSION=$TAG_NAME'
- 'BUILD_ID=$BUILD_ID'
dir: './gopath/src/github.com/solo-io/ext-auth-plugins'
id: 'publish-examples'
id: 'publish-examples'

secrets:
- kmsKeyName: projects/solo-public/locations/global/keyRings/build/cryptoKeys/build-key
secretEnv:
QUAY_IO_PASSWORD: CiQABlzmSRx5TcOqbldXa/d/+bkmAfpNAWa3PTS06WvuloZL+vASaQCCPGSGCogonVZVEUNx4G3YJtWi18gSuNx4PvLe08q8xAflTMFkjsyQirAOK3Y2oCvgYwiw/ITcuydjkpMjxDygFyENXS9FKFJoAXHlPQE5qidKr8xxmxF5ezhmjGB0gjyjXIIkbSEnBg==

0 comments on commit 2301b8f

Please sign in to comment.