move technical stuff to before_script
This commit is contained in:
parent
e735ecee09
commit
8856c30165
2 changed files with 7 additions and 7 deletions
|
@ -73,15 +73,15 @@ deploy:
|
||||||
before_script:
|
before_script:
|
||||||
- apt update
|
- apt update
|
||||||
- apt install --yes jq
|
- apt install --yes jq
|
||||||
|
- REPOSITORY_URL=$(echo "${CI_REPOSITORY_URL}" | sed -e "s|gitlab-ci-token:.*@|${RELEASE_TOKEN}:${RELEASE_TOKEN_SECRET}@|g")
|
||||||
|
- git remote set-url origin $REPOSITORY_URL
|
||||||
|
- git config user.name $GITLAB_USER_LOGIN
|
||||||
|
- git config user.email $GITLAB_USER_EMAIL
|
||||||
|
- git branch -D ci-processing || true
|
||||||
|
- git checkout -b ci-processing
|
||||||
cache:
|
cache:
|
||||||
<<: *global_cache
|
<<: *global_cache
|
||||||
script: |
|
script: |
|
||||||
REPOSITORY_URL=$(echo "${CI_REPOSITORY_URL}" | sed -e "s|gitlab-ci-token:.*@|${RELEASE_TOKEN}:${RELEASE_TOKEN_SECRET}@|g")
|
|
||||||
git remote set-url origin $REPOSITORY_URL
|
|
||||||
git config user.name $GITLAB_USER_LOGIN
|
|
||||||
git config user.email $GITLAB_USER_EMAIL
|
|
||||||
git branch -D ci-processing || true
|
|
||||||
git checkout -b ci-processing
|
|
||||||
npm run updateManifest -- --update=${RELEASE_TYPE}
|
npm run updateManifest -- --update=${RELEASE_TYPE}
|
||||||
RELEASE_VERSION=$(jq -r '.version' < package.json)
|
RELEASE_VERSION=$(jq -r '.version' < package.json)
|
||||||
git add package.json package-lock.json src/system.json
|
git add package.json package-lock.json src/system.json
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
"gridUnits": "m",
|
"gridUnits": "m",
|
||||||
"primaryTokenAttribute": "combatValues.hitPoints",
|
"primaryTokenAttribute": "combatValues.hitPoints",
|
||||||
"url": "https://git.f3l.de/dungeonslayers/ds4",
|
"url": "https://git.f3l.de/dungeonslayers/ds4",
|
||||||
"manifest": "https://git.f3l.de/dungeonslayers/ds4/-/raw/master/src/system.json?inline=false",
|
"manifest": "https://git.f3l.de/dungeonslayers/ds4/-/raw/latest/src/system.json?inline=false",
|
||||||
"download": "https://git.f3l.de/dungeonslayers/ds4/-/jobs/artifacts/0.1.0/download?job=build",
|
"download": "https://git.f3l.de/dungeonslayers/ds4/-/jobs/artifacts/0.1.0/download?job=build",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue