fix: update gulpfile
This commit is contained in:
parent
7fc334ab80
commit
c2a56997b6
@ -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)
|
||||||
|
@ -73,7 +73,7 @@ function zipRelease() {
|
|||||||
.pipe(gulp.dest('.'));
|
.pipe(gulp.dest('.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.build = gulp.series(
|
exports.release = gulp.series(
|
||||||
compileScss,
|
compileScss,
|
||||||
zipRelease
|
zipRelease
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user