diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3f62065..ed0b45d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,10 +19,7 @@ build_collect: script: - git clone https://github.com/sudhanshu16/openwrt-firmware-selector.git - cd openwrt-firmware-selector - - cat ./src/config.ts - python ./scripts/collect.py --image-url 'https://downloads.openwrt.org/{base}/{target}' https://downloads.openwrt.org ./src ./public/ - - echo "asdf" > ./src/asdf.txt - - cat ./src/config.ts artifacts: name: 'collect_${CI_COMMIT_REF_NAME}' paths: @@ -33,10 +30,15 @@ build_stage: stage: build_stage image: node:lts-alpine script: - - ls -lha - - cat openwrt-firmware-selector/src/config.ts + - cd openwrt-firmware-selector + - yarn install + - yarn build dependencies: - build_collect + artifacts: + name: 'build_${CI_COMMIT_REF_NAME}' + paths: + - openwrt-firmware-selector/build/ deploy_docker: stage: deploy