Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit fd3777c

Browse files
committed
fix(cd): make webapp repo URL configurable
1 parent ab6778d commit fd3777c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/cd.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ jobs:
113113
if: env.AZURE_CREDENTIALS != ''
114114
run: |
115115
export EXTEND_ESLINT=true
116-
OWNER=`echo $GITHUB_REPOSITORY | awk '{split($0,a,"/"); print a[1]}' | tr -d '\n'`
117-
git clone https://github.com/$OWNER/asset-tracker-cloud-app-js app
116+
WEBAPP_REPO=`cat package.json | jq -r '.deploy.webApp.repository'`
117+
WEBAPP_BRANCH=`cat package.json | jq -r '.deploy.webApp.branch'`
118+
git clone --branch $WEBAPP_BRANCH --single-branch $WEBAPP_REPO app
118119
cd app
119120
APP_TAG=`git tag --points-at HEAD | tr -d '\n'`
120121
APP_SHA=`git log -n 1 --pretty=format:"%H" | tr -d '\n'`

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,11 @@
105105
"jest": {
106106
"preset": "ts-jest",
107107
"testRegex": ".+.spec.ts$"
108+
},
109+
"deploy": {
110+
"webApp": {
111+
"repository": "https://github.com/NordicSemiconductor/asset-tracker-cloud-app-js.git",
112+
"branch": "saga"
113+
}
108114
}
109115
}

0 commit comments

Comments
 (0)