mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-29 19:29:23 +00:00
add preprod, prod & dev config
This commit is contained in:
+7
-6
@@ -1,12 +1,15 @@
|
||||
steps:
|
||||
# Build the Docker image
|
||||
- name: 'gcr.io/cloud-builders/docker'
|
||||
args: ['build', '-t', 'us-central1-docker.pkg.dev/$PROJECT_ID/openfrontio/game-server:${TAG_NAME}-${SHORT_SHA}', '.']
|
||||
|
||||
args: [
|
||||
'build',
|
||||
'-t', 'us-central1-docker.pkg.dev/$PROJECT_ID/openfrontio/game-server:${TAG_NAME}-${SHORT_SHA}',
|
||||
'--build-arg', 'GAME_ENV=${_GAME_ENV}',
|
||||
'.'
|
||||
]
|
||||
# Push the image to Artifact Registry
|
||||
- name: 'gcr.io/cloud-builders/docker'
|
||||
args: ['push', 'us-central1-docker.pkg.dev/$PROJECT_ID/openfrontio/game-server:${TAG_NAME}-${SHORT_SHA}']
|
||||
|
||||
# Update the GCE instance with the new container image
|
||||
- name: 'gcr.io/cloud-builders/gcloud'
|
||||
args:
|
||||
@@ -17,14 +20,12 @@ steps:
|
||||
- '--container-image'
|
||||
- 'us-central1-docker.pkg.dev/$PROJECT_ID/openfrontio/game-server:${TAG_NAME}-${SHORT_SHA}'
|
||||
- '--zone=us-central1-a'
|
||||
|
||||
substitutions:
|
||||
_INSTANCE_NAME: 'openfrontio-dev-instance'
|
||||
_GAME_ENV: 'preprod' # Default to preprod
|
||||
TAG_NAME: 'dev'
|
||||
|
||||
options:
|
||||
substitutionOption: 'ALLOW_LOOSE'
|
||||
logging: CLOUD_LOGGING_ONLY
|
||||
|
||||
images:
|
||||
- 'us-central1-docker.pkg.dev/$PROJECT_ID/openfrontio/game-server:${TAG_NAME}-${SHORT_SHA}'
|
||||
Reference in New Issue
Block a user