docker-semver-tags
v1.2.0
Published
Create semver tags with shortcuts for your Docker images
Downloads
8
Readme
docker-semver-tags
Create semver tags and their associated shortcuts for your Docker images.
$ npx docker-semver-tags --sourceImage metroline/metroline --versionTag 1.0.0
🏷️ metroline/metroline:1.0.0
🏷️ metroline/metroline:1.0
🏷️ metroline/metroline:1
🏷️ metroline/metroline:latest
Dry-run (just log the versions, don't build / push them):
$ npx docker-semver-tags --sourceImage metroline/metroline --versionTag 1.0.0 --dryRun
🏷️ metroline/metroline:1.0.0
🏷️ metroline/metroline:1.0
🏷️ metroline/metroline:1
🏷️ metroline/metroline:latest
Use a suffix:
$ npx docker-semver-tags --sourceImage metroline/metroline --versionTag 1.0.0 --suffix "alpine"
🏷️ metroline/metroline:1.0.0-alpine
🏷️ metroline/metroline:1.0-alpine
🏷️ metroline/metroline:1-alpine
🏷️ metroline/metroline:latest-alpine
Different source and target images:
$ npx docker-semver-tags --sourceImage tmp --sourceImage metroline/metroline --versionTag 1.0.0 --suffix "alpine"
🏷️ metroline/metroline:1.0.0-alpine
🏷️ metroline/metroline:1.0-alpine
🏷️ metroline/metroline:1-alpine
🏷️ metroline/metroline:latest-alpine
Do not create latest tag:
$ npx docker-semver-tags --sourceImage metroline/metroline --versionTag 1.0.0 --latest false
🏷️ metroline/metroline:1.0.0
🏷️ metroline/metroline:1.0
🏷️ metroline/metroline:1