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:
|
||||
- apt update
|
||||
- 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:
|
||||
<<: *global_cache
|
||||
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}
|
||||
RELEASE_VERSION=$(jq -r '.version' < package.json)
|
||||
git add package.json package-lock.json src/system.json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue