diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10fe4a6..1b3c9ce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ variables: PKG: "gitlab.com/unitto/nohi" + STABLE_IMAGE: ${REGISTRY_IMAGE}:stable TAG_IMAGE: ${REGISTRY_IMAGE}:${CI_COMMIT_TAG} @@ -84,3 +85,5 @@ build-tags: script: - docker build --build-arg flags="-X ${PKG}/cmd.Commit=${CI_COMMIT_SHORT_SHA} -X ${PKG}/cmd.Version=${CI_COMMIT_TAG}" -t ${TAG_IMAGE} -f build/Dockerfile . - docker push ${TAG_IMAGE} + - docker tag ${TAG_IMAGE} ${STABLE_IMAGE} + - docker push ${STABLE_IMAGE} diff --git a/README.md b/README.md index 8b3914d..21ad813 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ _NOHI - it's an abbreviation from Not Only Human-friendly IDs_ -The main idea of this library and command-lite tool is to provide easy and performant +The main idea of this library and command-line tool is to provide easy and performant way to generate useful sensitive data such a Human-friendly ID, password, etc. ## Requirements @@ -48,10 +48,13 @@ $ nohi completion -h ```bash # run docker image $ docker run unitto/nohi -h + +# stable version (last release) +$ docker run unitto/nohi:stable -h ``` ## Example Usage -Lest generate 10 logins and passwords for our mates: +Lets generate 10 logins and passwords for our mates: ```bash $ nohi hid -n 10 && nohi pwd -n 10 diff --git a/docs/index.md b/docs/index.md index 5cd447d..a9f6180 100644 --- a/docs/index.md +++ b/docs/index.md @@ -16,7 +16,7 @@ _NOHI - it's an abbreviation from Not Only Human-friendly IDs_ -The main idea of this library and command-lite tool is to provide easy and performant +The main idea of this library and command-line tool is to provide easy and performant way to generate useful sensitive data such a Human-friendly ID, password, etc. ## Requirements @@ -59,10 +59,13 @@ $ nohi completion -h ```bash # run docker image $ docker run unitto/nohi -h + +# stable version (last release) +$ docker run unitto/nohi:stable -h ``` ## Example Usage -Lest generate 10 logins and passwords for our mates: +Lets generate 10 logins and passwords for our mates: ```bash $ nohi hid -n 10 && nohi pwd -n 10