From 90d6e302e3020a7b53ea533d25c117b934ebb43b Mon Sep 17 00:00:00 2001 From: Jason Schweier Date: Fri, 27 Aug 2021 16:02:34 -0400 Subject: [PATCH] Add release script and update README --- README.md | 13 ++++++++++++- release | 9 +++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 release diff --git a/README.md b/README.md index ce00097..b4b44db 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,17 @@ $ docker-compose up $ mix test --include integration ``` +## Docker image + +A docker image is provided and is hosted at [quay](https://www.quay.io). +You can rename `kconnectex_docker_wrapper` locally to execute it in Docker. + +### Release + +You permission to push to the Docker repository (currently, just the author). + +A script will release the CLI with a tag of the current version: `./release` + ## Installation It's not in hex yet, but the adventurous can grab it from Github: @@ -73,7 +84,7 @@ by adding `kconnectex` to your list of dependencies in `mix.exs`: ```elixir def deps do [ - {:kconnectex, "~> 0.1.0"} + {:kconnectex, "~> 0.2.0"} ] end ``` diff --git a/release b/release new file mode 100755 index 0000000..5999115 --- /dev/null +++ b/release @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -x + +tag=$(cat mix.exs | grep "version:" | cut -d\" -f2) + +docker build -t quay.io/jmks/kconnectex:${tag} . + +docker push quay.io/jmks/kconnectex:${tag}