Merge pull request #2200 from clonn/patch-1

gcloud registry auth step for docker build
This commit is contained in:
Shao Yu-Lung (Allen) 2019-12-22 15:33:33 +08:00 committed by GitHub
commit bad3b76963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ weight: 2
- [Git](https://git-scm.com/downloads) - [Git](https://git-scm.com/downloads)
- [Docker](https://www.docker.com/products/docker/) `>= 17.12` - [Docker](https://www.docker.com/products/docker/) `>= 17.12`
- [gcloud](https://cloud.google.com/sdk/install)
@ -21,6 +22,17 @@ Choose the setup the best suits your needs.
- [A.2) Don't have a PHP project yet](#A2) - [A.2) Don't have a PHP project yet](#A2)
- [B) Setup for Multiple Projects](#B) - [B) Setup for Multiple Projects](#B)
### Setup gcloud for docker registry
```
gcloud auth configure-docker
```
and login to gcloud for use the registry and auth the permission.
```
gcloud auth login
```
<a name="A"></a> <a name="A"></a>
### A) Setup for Single Project ### A) Setup for Single Project