Skip to content

Commit

Permalink
⚡ Use a custom Docker image for CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Sep 9, 2022
1 parent ae9cd06 commit 91da973
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default:
image: node:16
image: cosmomyzrailgorynych/docker-nw-builder:latest
# Caching settigns for NPM, according to https://docs.gitlab.com/ee/ci/caching/index.html#cache-nodejs-dependencies
before_script:
- npm ci --cache .npm --prefer-offline
Expand Down Expand Up @@ -33,31 +33,25 @@ workflow:
preinstall:
stage: .pre
script:
- "npm i -g gulp-cli"
- "npm install"
- "gulp -f devSetup.gulpfile.js"

lint:
needs: ["preinstall"]
stage: test
script:
- npm i -g gulp-cli
- gulp lint

build:
needs: ["preinstall"]
stage: test
script:
- npm i -g gulp-cli
- gulp build

pack-deploy-release:
stage: pack
needs: ["lint", "build"]
script:
- apt-get update
- apt-get install zip unzip -y
- npm i -g gulp-cli
- gulp -f devSetup.gulpfile.js
- gulp packages --buildNum=$CI_COMMIT_TAG
- gulp deployItchOnly --buildNum=$CI_COMMIT_TAG
Expand All @@ -72,8 +66,6 @@ pack-deploy-nightly:
rules:
- if: $CI_COMMIT_BRANCH == "develop"
script:
- apt-get update
- apt-get install zip unzip -y
- npm i -g gulp-cli
- gulp -f devSetup.gulpfile.js
- gulp packages --nightly --buildNum=$CI_COMMIT_SHORT_SHA
Expand Down

0 comments on commit 91da973

Please sign in to comment.