Sign inSign up

smartrent/javascript-ci

By smartrent

Updated 6 months ago

Javascript-ci

Image
0

5.5K

smartrent/javascript-ci repository overview

javascript-ci-docker

For JavaScript projects to test and run things in CI. Images are hosted on docker hub and builds/tests are automated through Cirrus

Cirrus will build and push new images:

  • A commit in a PR is tagged with pre-release
  • A commit merged to main is tagged with release-candidate
  • Cutting a tag on main is also pushed to DockerHub

This uses docker buildx to leverage multi-arch builds.

How to build and run locally

Where javascript-ci is your DockerHub image name.

#build local
docker build . --tag javascript-ci-docker --load
#build with buildx (multi-arch)
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 --tag javascript-ci-docker .

#run local
docker run -dit javascript-ci-docker #keeps container alive
docker run -it --rm javascript-ci-docker sh #runs it inline in your shell

To build and push a new image

ex: docker for version 1.0.0

git tag 1.0.0
git push --tags

Refs

Env vars

NPM_AUTH_TOKEN - will be written at startup to .npmrc for authentication

Tag summary

Content type

Image

Digest

sha256:99f79e097

Size

90 MB

Last updated

almost 3 years ago

docker pull smartrent/javascript-ci