semantic-release docker image
2.0K
Docker image for semantic-release with embedded plugins and semantic-release@beta.
Included plugins:
@semantic-release/execIncluded packages
Latest build version:
$ docker run --rm -v $(pwd):/opt/cwd --env NPM_TOKEN --env GH_TOKEN -ti zaripych/semantic-release
for @beta:
$ docker run --rm -v $(pwd):/opt/cwd --env NPM_TOKEN --env GH_TOKEN -ti zaripych/semantic-release:beta
Please note that
semantic-releasewill require access to environment variables specific to your CI environment. Have a look at https://github.com/pvdlg/env-ci to understand which environment variables should be shared for your specific CI.
semantic-releaseIn order to use docker inside docker the recommended approach is to pass in /var/run/docker.sock when running:
$ docker run --rm -v $(pwd):/opt/cwd -v /var/run/docker.sock:/var/run/docker.sock -ti zaripych/semantic-release:beta
This way the docker-cli within contain will have access to the host docker daemon.
#!/bin/bash
set -x
GITHUB_VARS=( $(env | grep GITHUB_) )
TRAVIS_VARS=( $(env | grep TRAVIS_) )
docker run --rm -v $(pwd):/opt/cwd -ti \
--env NPM_TOKEN \
--env GH_TOKEN \
${GITHUB_VARS[@]/#/"--env "} \
${TRAVIS_VARS[@]/#/"--env "} \
zaripych/semantic-release \
semantic-release $@
Content type
Image
Digest
Size
90.8 MB
Last updated
almost 6 years ago
docker pull zaripych/semantic-release