diff --git a/README.md b/README.md index c987928..90b8abf 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ The best website ever. + + + + diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 84d1464..70e1ab6 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,11 +1,14 @@ steps: # build the container image - name: 'gcr.io/cloud-builders/docker' - args: ['build', '-t', 'gcr.io/$PROJECT_ID/$_SERVICE_NAME]', '.'] + args: ['build', '-t', 'gcr.io/$PROJECT_ID/$_SERVICE', '.'] # push the container image to Container Registry - name: 'gcr.io/cloud-builders/docker' - args: ['push', 'gcr.io/$PROJECT_ID/$_SERVICE_NAME]'] + args: ['push', 'gcr.io/$PROJECT_ID/$_SERVICE'] # Deploy container image to Cloud Run - name: 'gcr.io/cloud-builders/gcloud' - args: ['alpha', 'run', 'deploy', '$_SERVICE-NAME', '--image', 'gcr.io/$PROJECT_ID/$_SERVICE_NAME', '--region', '$_REGION'] - images: ['gcr.io/$PROJECT_ID/$_SERVICE_NAME'] \ No newline at end of file + args: ['alpha', 'run', 'deploy', '$_SERVICE', '--image', 'gcr.io/$PROJECT_ID/$_SERVICE', '--region', '${_REGION}'] + images: ['gcr.io/$PROJECT_ID/$_SERVICE'] + substitutions: + _SERVICE: hello-web # service name + _REGION: us-central1 # region \ No newline at end of file