Gitlab Runner: Frontender Toolchain - NPM, Grunt, Bower, Ruby, SASS, NodeJS, lftp
2.1K
This is a custom build of the original gitlab-runner Docker image from https://gitlab.com/gitlab-org/gitlab-runner. I've simply added some fronted tools i need to deploy my stuff.
Toolchain:
publish:
stage: build
script:
- npm install
- bower install
- grunt
- cd build
- lftp -u $FTP_USER,$FTP_PASS -e 'mirror --only-newer --reverse --verbose ./ ./' $FTP_HOST
only:
- master
tags:
- sass
- bower
- npm
- grunt
- lftp
In Gitlab-CI project settings, i'm creating secret project variables for FTP_USER, FTP_PASS and FTP_HOST.
If you are defining tags like i did in my example, you need to set those tags on your runner via Gitlab-CI settings too. If not, your build status will stay pending!
You need to perform the following actions as gitlab-runner user (sudo su gitlab-runner)
set ssl:verify-certificate false if certificate validation failsContent type
Image
Digest
sha256:9c8a5381a…
Size
565.7 MB
Last updated
about 4 years ago
docker pull s1rd4v3/gitlab-runner-frontend