Skip to content

Commit

Permalink
set name correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed May 24, 2024
1 parent ac403d3 commit 92ec511
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ jobs:
uses: mikefarah/yq@master
with:
cmd: |
name=${{ github.repository }}
name=${name#"ocadotechnology/codeforelife-"}
yq -i $(
# Set name with convention "{ENV_NAME}-{REPO_NAME}"
export name=${{ github.repository }}
name=${name#"ocadotechnology/codeforelife-"}
name="${{ github.ref_name }}-${name}"
yq -i '
.service = "${{ github.ref_name }}-$name"
' app.yaml
echo '
.service = "${name}"
' | envsubst
) app.yaml
- name: 🚀 Deploy App on GCloud
uses: ocadotechnology/codeforlife-workspace/.github/actions/gcloud/deploy-app@configure_js_services # TODO: set to @main
Expand Down

0 comments on commit 92ec511

Please sign in to comment.