bitbucket-pipelines front-end-build
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
Instructions
-
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
Usage
image: inforitnl/front-end-build
pipelines:
default:
- step:
script:
- /front-end-build.sh
scripts
Command | Description |
---|---|
build | build the container with latest tag |
push | pushes the container |