another try to get stuff faster and better with artifacts and stuff :D

This commit is contained in:
Micha Gläß-Stöcker 2021-08-23 22:20:32 +02:00
parent 66729f7e1e
commit bb7517b225

View file

@ -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