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