fix: update gulpfile

This commit is contained in:
Winter_Myst 2024-09-22 01:54:53 +02:00
parent 7fc334ab80
commit c2a56997b6
2 changed files with 17 additions and 6 deletions

View File

@ -5,9 +5,16 @@ stages:
# Compile Job (runs on every commit) # Compile Job (runs on every commit)
compile: compile:
stage: compile stage: compile
image: node:14 image: ubuntu:latest
script: 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 - npm install --global gulp-cli
- gulp --version # Verify Gulp is installed
script:
- npm install - npm install
- gulp compile - gulp compile
only: only:
@ -16,11 +23,15 @@ compile:
# Release Job (manually triggered with version) # Release Job (manually triggered with version)
release: release:
stage: release stage: release
image: node:14 image: ubuntu:latest # Or any other basic image
before_script: 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 --global gulp-cli
- npm install - gulp --version # Verify Gulp is installed
# Set up SSH agent and add private key for pushing to protected branch # 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 )' - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)

View File

@ -73,7 +73,7 @@ function zipRelease() {
.pipe(gulp.dest('.')); .pipe(gulp.dest('.'));
} }
exports.build = gulp.series( exports.release = gulp.series(
compileScss, compileScss,
zipRelease zipRelease
); );