diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 24931a3..1bc8ee3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,12 +9,12 @@ services: - docker:dind stages: - - collect_stage - - build_stage + - collect + - build - deploy -build_collect: - stage: collect_stage +collect: + stage: collect image: python:bullseye script: - git clone https://github.com/sudhanshu16/openwrt-firmware-selector.git @@ -25,8 +25,8 @@ build_collect: paths: - openwrt-firmware-selector -build_stage: - stage: build_stage +build: + stage: build image: node:lts-alpine script: - npm install json @@ -35,13 +35,13 @@ build_stage: - yarn install - yarn build dependencies: - - build_collect + - collect artifacts: name: 'build_${CI_COMMIT_REF_NAME}' paths: - openwrt-firmware-selector/build/ -deploy_docker: +deploy: stage: deploy variables: IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG @@ -53,4 +53,4 @@ deploy_docker: - docker buildx create --use --name A$CI_COMMIT_SHORT_SHA - docker buildx build --platform $BUILD_PLATFORMS --push -t $IMAGE_TAG -t $CI_REGISTRY_IMAGE:latest -t $D_IMAGE_TAG -t $D_LATEST_TAG . dependencies: - - build_stage + - build