Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metowolf/docker-version
A simple Docker tagging and publishing tool
https://github.com/metowolf/docker-version
docker semver version
Last synced: about 2 months ago
JSON representation
A simple Docker tagging and publishing tool
- Host: GitHub
- URL: https://github.com/metowolf/docker-version
- Owner: metowolf
- Created: 2019-01-04T12:20:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-12T07:05:25.000Z (about 6 years ago)
- Last Synced: 2024-11-18T17:47:07.345Z (2 months ago)
- Topics: docker, semver, version
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Version [![Version](https://img.shields.io/npm/v/docker-version-cli.svg?style=flat-square)](https://www.npmjs.com/package/docker-version-cli)
> A simple Docker tagging and publishing tool
## Install
```bash
$ npm i docker-version-cli -g
```
or```bash
$ yarn global add docker-version-cli
```## Usage
```bash
$ docker-version --help
Usage: docker-version [options]Options:
-V, --version output the version number
-n, --name [name] Docker images name (default: "")
-t, --tag [tag] Docker images tag/version (default: "")
-h, --help output usage information
```## Configuration
put `.docker-version` file into your docker project
```bash
$ cat .docker-versionphp:latest-fpm-alpine
php:latest-cli-alpine
```### Example
pull alpine:latest and tag 3.8, 3, current for it.
```bash
$ docker-version -n alpine:latest -t 3.8[success] pull alpine:latest
[success] tag alpine:3.8
[success] push alpine:3.8
[success] tag alpine:3
[success] push alpine:3
[success] tag alpine:current
[success] push alpine:current
```or interactive
```bash
$ docker-version? what is your docker images name? alpine:latest
? what is your docker images latest version? 3.8[success] pull alpine:latest
[success] tag alpine:3.8
[success] push alpine:3.8
[success] tag alpine:3
[success] push alpine:3
[success] tag alpine:current
[success] push alpine:current
```