ci(gitlab-cicd): 💚 fix CI build on fetching env.json snippet stuff

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2022-04-25 12:10:41 +00:00
parent 831016883a
commit d818d3e3cb
2 changed files with 14 additions and 19 deletions

View File

@ -1,24 +1,21 @@
image: "$CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/node:16-alpine"
cache: &global_cache
key: "deps-cache-$CI_COMMIT_BRANCH"
files:
- package-lock.json
paths:
- .npm/
policy: pull-push
stages:
- test
- deploy
default:
before_script:
- apk add bash coreutils wget
- |
echo WORKSPACE_PATH=$PWD | tee ~/.librc >> /dev/null
echo CREATED_AT=1650520343 | tee -a ~/.librc >> /dev/null
echo STDLIBRC | base64 -d | tee -a ~/.librc >> /dev/null
- |
wget --header="Authorization: bearer $SNIPPET_BYPASS_TOKEN" "$ENV_JSON_FILE" -O ./env.json
cache:
key:
files:
- package-lock.json
paths:
- .npm/
before_script:
- apk add bash coreutils wget
- |
echo WORKSPACE_PATH=$PWD | tee ~/.librc >> /dev/null
echo CREATED_AT=1650520343 | tee -a ~/.librc >> /dev/null
echo STDLIBRC | base64 -d | tee -a ~/.librc >> /dev/null
- |
wget --header="Authorization: bearer $SNIPPET_BYPASS_TOKEN" "$ENV_JSON_FILE" -O ./env.json

View File

@ -6,8 +6,6 @@ deploy:dev:
script:
- npm ci --cache .npm --prefer-offline
- npm run deploy:dev
cache:
<<: *global_cache
rules:
- if: $CI_COMMIT_BRANCH == "main"
changes: