Skip to content

Commit

Permalink
🚀 Test deploy CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zatonix committed Aug 5, 2024
1 parent 9e59004 commit d2de575
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- name: Run Cloud Build
run: |
gcloud builds submit --config app/cloudbuild.yaml .. --substitutions=_BRANCH=${{ env.BRANCH }},COMMIT_SHA=${{ env.COMMIT_SHA }}
gcloud builds submit --config app/cloudbuild.yaml ..
12 changes: 4 additions & 8 deletions app/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/chess-tactics-manager-app:${_COMMIT_SHA}', '-f', './Dockerfile', '..']
args: ['build', '-t', 'gcr.io/$PROJECT_ID/chess-tactics-manager-app:${COMMIT_SHA}', '-f', './Dockerfile', '..']
dir: 'app'

- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/chess-tactics-manager-app:${_COMMIT_SHA}']
args: ['push', 'gcr.io/$PROJECT_ID/chess-tactics-manager-app:${COMMIT_SHA}']

- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: 'gcloud'
Expand All @@ -13,7 +13,7 @@ steps:
- 'deploy'
- 'chess-tactics-manager-app'
- '--image'
- 'gcr.io/$PROJECT_ID/chess-tactics-manager-app:${_COMMIT_SHA}'
- 'gcr.io/$PROJECT_ID/chess-tactics-manager-app:${COMMIT_SHA}'
- '--platform'
- 'managed'
- '--region'
Expand All @@ -22,12 +22,8 @@ steps:
- '--port'
- '8080'

substitutions:
_BRANCH: ${_BRANCH}
_COMMIT_SHA: ${_COMMIT_SHA}

images:
- 'gcr.io/$PROJECT_ID/chess-tactics-manager-app:${_COMMIT_SHA}'
- 'gcr.io/$PROJECT_ID/chess-tactics-manager-app:${COMMIT_SHA}'

options:
logging: CLOUD_LOGGING_ONLY

0 comments on commit d2de575

Please sign in to comment.