Skip to content

Commit

Permalink
BUGFIX: Do not mutate the processes env
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkdpixels committed Aug 30, 2017
1 parent 1314830 commit 808ff0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm i -D @immowelt/docker-publish

## Usage and examples
```
Usage: docker-publish [options]
Usage: DEBUG=@immowelt* docker-publish [options]
Options:
Expand All @@ -27,7 +27,7 @@ npm i -D @immowelt/docker-publish

#### Example usage
```sh
docker-publish --tags=8.2.0-alpine,8.4.0-alpine --image=immowelt/node --arg=NODE_VERSION --latest
DEBUG=@immowelt* docker-publish --tags=8.2.0-alpine,8.4.0-alpine --image=immowelt/node --arg=NODE_VERSION --latest
```

This command would build and push a docker image with the `Dockerfile` located in the processes `cwd` for each valid semver release tag of the official NodeJS repository. During the build we forward an `--build-arg`, e.g. `NODE_VERSION` with the current iterated version. After the build is done the image gets tagged e.g. `immowelt/node:8.3.0`.
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env node

process.env.DEBUG = process.env.DEBUG || '@immowelt*';

const logger = require('log-fancy')('@immowelt/docker-publish');
const cli = require('commander');
const defaultFlow = require('./commands/default.js');
Expand Down

0 comments on commit 808ff0d

Please sign in to comment.