Sign inSign up

zaripych/semantic-release

By zaripych

Updated almost 6 years ago

semantic-release docker image

Image
0

2.0K

zaripych/semantic-release repository overview

Docker image for semantic-release

Docker image for semantic-release with embedded plugins and semantic-release@beta.

Included plugins:

  • @semantic-release/exec

Included packages

  • Docker CLI, for being able to build docker images as part of release process
  • bash, for @semantic-release/exec to work

Running

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-release will 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.

Building Docker images using semantic-release

In 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.

Helper Scripts

#!/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 $@

GitHub

Tag summary

Content type

Image

Digest

Size

90.8 MB

Last updated

almost 6 years ago

docker pull zaripych/semantic-release