mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-08 21:59:27 +00:00
another try to get stuff faster and better with artifacts and stuff :D
This commit is contained in:
parent
66729f7e1e
commit
bb7517b225
1 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue