Last active
July 18, 2021 11:59
-
-
Save RafalSladek/0d92fa68cb985c698560 to your computer and use it in GitHub Desktop.
gitlab ci file for gulp build pipeline with the latest nodejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:latest | |
cache: | |
paths: | |
- node_modules/ | |
before_script: | |
- npm install | |
stages: | |
- build_deploy | |
build_&_deploy_app: | |
stage: build_deploy | |
only: | |
- master | |
script: | |
- gulp build -production | |
- gulp deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have a task like gulp.task('upload') in you gulpfile you can do this:
You can have a .gitlab-ci.yml like so:
Make sure you have gulp in your package.json (truncated version below)