Docker image to automate front-end builds on bitbucket (and local)
Comes preinstalled with Firefox and Chromium for (unit)-testing during build. Also sonar-scanner is installed to enable sonar analyzing
-
update dockerfile
-
build local version:
npm run build
-
push new version to dockerhub:
npm run push
-
tag and push again (optional but recommended):
npm run publish
image: frontliners/front-end-build
pipelines:
default:
- step:
script:
- /front-end-build.sh
Command | Description |
---|---|
build | build the container with latest tag |
push | pushes the container |