From bb7517b225e7f0786e0ff602c054506b38c5319c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=20Gl=C3=A4=C3=9F-St=C3=B6cker?= Date: Mon, 23 Aug 2021 22:20:32 +0200 Subject: [PATCH] another try to get stuff faster and better with artifacts and stuff :D --- .gitlab-ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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