diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b213980..a8360c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,9 +5,16 @@ stages: # Compile Job (runs on every commit) compile: stage: compile - image: node:14 - script: + image: ubuntu:latest + before_script: + # Install Node.js v21.7.3 manually + - curl -fsSL https://deb.nodesource.com/setup_21.x | bash - + - apt-get install -y nodejs + - node -v # Verify the correct Node.js version + # Install Gulp globally - npm install --global gulp-cli + - gulp --version # Verify Gulp is installed + script: - npm install - gulp compile only: @@ -16,11 +23,15 @@ compile: # Release Job (manually triggered with version) release: stage: release - image: node:14 + image: ubuntu:latest # Or any other basic image before_script: - - apt-get update && apt-get install -y curl jq + # Install Node.js v21.7.3 manually + - curl -fsSL https://deb.nodesource.com/setup_21.x | bash - + - apt-get install -y nodejs + - node -v # Verify the correct Node.js version + # Install Gulp globally - npm install --global gulp-cli - - npm install + - gulp --version # Verify Gulp is installed # Set up SSH agent and add private key for pushing to protected branch - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - eval $(ssh-agent -s) diff --git a/gulpfile.js b/gulpfile.js index 72f914b..9599a1e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -73,7 +73,7 @@ function zipRelease() { .pipe(gulp.dest('.')); } -exports.build = gulp.series( +exports.release = gulp.series( compileScss, zipRelease );