forked from LengKundee/MQL5-Google-Onedrive
28 lines
724 B
YAML
28 lines
724 B
YAML
steps:
|
|
# Build the container image
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
args: ['build', '-t', 'gcr.io/$PROJECT_ID/mql5-automation', '.']
|
|
|
|
# Push the container image to Container Registry
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
args: ['push', 'gcr.io/$PROJECT_ID/mql5-automation']
|
|
|
|
# Deploy to Cloud Run
|
|
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
|
|
entrypoint: gcloud
|
|
args:
|
|
- 'run'
|
|
- 'deploy'
|
|
- 'mql5-automation'
|
|
- '--image'
|
|
- 'gcr.io/$PROJECT_ID/mql5-automation'
|
|
- '--region'
|
|
- 'us-central1'
|
|
- '--platform'
|
|
- 'managed'
|
|
- '--allow-unauthenticated'
|
|
- '--port'
|
|
- '8080'
|
|
|
|
images:
|
|
- 'gcr.io/$PROJECT_ID/mql5-automation'
|