Skip to content

Commit

Permalink
bump to v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Feb 19, 2023
1 parent 2e86db4 commit c624a36
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 37 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/go.yml
Expand Up @@ -151,7 +151,7 @@ jobs:
- name: Docker Build
## if: startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '/master')
# if: startsWith(github.ref, 'refs/tags/v') && env.ENABLE_DOCKER != 0
if: startsWith(github.ref, 'refs/tags/v') && env.ENABLE_DOCKER != 0
## if: env.ENABLE_DOCKER != 0
env:
HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
Expand Down Expand Up @@ -199,16 +199,16 @@ jobs:
--build-arg GIT_DESC="${GIT_DESC}" \
--build-arg BUILDER_COMMENT="${BUILDER_COMMENT}" \
--build-arg GOPROXY="https://goproxy.io,direct" \
-t ghcr.io/$ACTOR/$IMAGE_NAME:$IMAGE_TAG \
-t ghcr.io/$ACTOR/$IMAGE_NAME:latest \
-t ghcr.io/$ACTOR/$IMAGE_NAME/$IMAGE_NAME:$IMAGE_TAG \
-t ghcr.io/$ACTOR/$IMAGE_NAME/$IMAGE_NAME:latest \
-t $ACTOR/$IMAGE_NAME:$IMAGE_TAG \
-t $ACTOR/$IMAGE_NAME:latest \
.
if [ "$GH_TOKEN" != "" ]; then
docker login ghcr.io -u $ACTOR -p $GH_TOKEN
# docker tag IMAGE_ID ghcr.io/$ACTOR/$IMAGE_NAME:$VERSION
docker push ghcr.io/$ACTOR/$IMAGE_NAME:$IMAGE_TAG
docker push ghcr.io/$ACTOR/$IMAGE_NAME:latest
docker push ghcr.io/$ACTOR/$IMAGE_NAME/$IMAGE_NAME:$IMAGE_TAG
docker push ghcr.io/$ACTOR/$IMAGE_NAME/$IMAGE_NAME:latest
fi
if [ "$HUB_TOKEN" != "" ]; then
docker login -u $ACTOR -p $HUB_TOKEN
Expand All @@ -217,7 +217,7 @@ jobs:
fi
- name: Build
# if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
run: |
APP_NAME="${GITHUB_REPOSITORY##*/}"
Expand Down
45 changes: 14 additions & 31 deletions README.md
Expand Up @@ -2,7 +2,7 @@

![Go](https://github.com/hedzr/consul-tags/workflows/Go/badge.svg)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/hedzr/consul-tags.svg?label=release)](https://github.com/hedzr/consul-tags/releases)
[![](https://img.shields.io/badge/go-dev-green)](https://pkg.go.dev/github.com/hedzr/consul-tags)
[![go.dev](https://img.shields.io/badge/go-dev-green)](https://pkg.go.dev/github.com/hedzr/consul-tags)
[![license](https://img.shields.io/github/license/hedzr/consul-tags.svg)](https://pkg.go.dev/github.com/hedzr/consul-tags)
[![Docker Automated build](https://img.shields.io/docker/automated/hedzr/consul-tags.svg)](https://hub.docker.com/r/hedzr/consul-tags)
[![Docker Pulls](https://img.shields.io/docker/pulls/hedzr/consul-tags.svg)](https://hub.docker.com/r/hedzr/consul-tags)
Expand All @@ -16,9 +16,14 @@

Here is a first release for key functionality.

## News

### v0.7.0

## News
- move to go1.17+
- upgrade to the newest consul api
- upgrade [hedzr/cmdr](https://hedzr.com/cmdr) to v1.11.6+
- a slightly smaller binary file

### v0.6.1

Expand Down Expand Up @@ -48,8 +53,6 @@ Here is a first release for key functionality.
- rewrote by [`cmdr`](https://github.com/hedzr/cmdr)
- pre-released for v0.5.1 (final)



## Install

### Binary
Expand All @@ -69,7 +72,6 @@ DON'T use `127.0.0.1` with dockerize release.

> latest: master branch and based on golang:alpine

### Go Build

clone the repo and build:
Expand All @@ -86,10 +88,8 @@ mixin:
go get -u github.com/hedzr/consul-tags
```


## Usage


```bash

# run consul demo instance for testing
Expand Down Expand Up @@ -134,42 +134,32 @@ CT_APP_MS_ADDR=localhost:8500 consul-tags --help
consul-tags ms tags ls --name=consul --addr 127.0.0.1:8500
```

### COMMANDS:
### COMMANDS

```
```bash
kv K/V pair Operations, ...
ms, service, m Microservice Operations, ...
help, h Shows a list of commands or help for one command
```

### GLOBAL OPTIONS:
### GLOBAL OPTIONS

```
```bash
--help, -h show help (default: false)
--version, -v print the version (default: false)
```

## Shell completion

TODO

```bash

consul-tags gen sh --zsh
consul-tags gen sh --bash
```

or put it to `/etc/bash_completion.d/`:

```bash

```



## Thanks

my plan is building a suite of devops. consul operations is part of it.


and some repositories are good:

- [colebrumley/consul-kv-backup](https://github.com/colebrumley/consul-kv-backup)
Expand All @@ -178,13 +168,6 @@ and some repositories are good:

### Third-party repos




## License

MIT.




MIT/APache 2.0

0 comments on commit c624a36

Please sign in to comment.