diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0becb11..ce105cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,25 +8,34 @@ variables: services: - docker:dind +stages: + - collect_stage + - build_stage + - deploy + build_collect: - stage: build + stage: collect_stage image: python:bullseye 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/ + - cat ./src/config.ts artifacts: name: 'public_${CI_COMMIT_REF_NAME}' paths: - public/ - src/ -build_static: - stage: build +build_stage: + stage: build_stage image: node:lts-alpine script: - ls -lha - cat ./src/config.ts + dependencies: + - build_collect deploy_docker: stage: deploy