Skip to content

Commit

Permalink
v0.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Oct 11, 2020
1 parent 1201386 commit 68632d9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/go.yml
Expand Up @@ -140,29 +140,28 @@ jobs:
env:
HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMAGE_NAME: $APPNAME
IMAGE_TAG:
run: |
IMAGE_TAG=${GITHUB_REF#*/}
IMAGE_TAG=${IMAGE_TAG#*/}
IMAGE_TAG=$(echo $IMAGE_TAG | sed -e "s#^v##")
echo "Using IMAGE_TAG: $IMAGE_TAG"
docker build \
-t docker.pkg.github.com/hedzr/$IMAGE_NAME/$IMAGE_NAME:$IMAGE_TAG \
-t docker.pkg.github.com/hedzr/$IMAGE_NAME/$IMAGE_NAME:latest \
-t hedzr/$IMAGE_NAME:$IMAGE_TAG \
-t hedzr/$IMAGE_NAME:latest \
-t docker.pkg.github.com/hedzr/$APPNAME/$APPNAME:$IMAGE_TAG \
-t docker.pkg.github.com/hedzr/$APPNAME/$APPNAME:latest \
-t hedzr/$APPNAME:$IMAGE_TAG \
-t hedzr/$APPNAME:latest \
.
echo $GH_TOKEN | docker login docker.pkg.github.com -u hedzr --password-stdin
# docker tag IMAGE_ID docker.pkg.github.com/hedzr/$IMAGE_NAME:$VERSION
docker push docker.pkg.github.com/hedzr/$IMAGE_NAME/$IMAGE_NAME:$IMAGE_TAG
docker push docker.pkg.github.com/hedzr/$IMAGE_NAME/$IMAGE_NAME:latest
# docker tag IMAGE_ID docker.pkg.github.com/hedzr/$APPNAME:$VERSION
docker push docker.pkg.github.com/hedzr/$APPNAME/$APPNAME:$IMAGE_TAG
docker push docker.pkg.github.com/hedzr/$APPNAME/$APPNAME:latest
#
echo $HUB_TOKEN | docker login -u hedzr --password-stdin
# docker tag docker.pkg.github.com/hedzr/$IMAGE_NAME:latest hedzr/$IMAGE_NAME:$IMAGE_TAG
# docker tag docker.pkg.github.com/hedzr/$IMAGE_NAME:latest hedzr/$IMAGE_NAME:latest
docker push hedzr/$IMAGE_NAME:$IMAGE_TAG
docker push hedzr/$IMAGE_NAME:latest
# docker tag docker.pkg.github.com/hedzr/$APPNAME:latest hedzr/$APPNAME:$IMAGE_TAG
# docker tag docker.pkg.github.com/hedzr/$APPNAME:latest hedzr/$APPNAME:latest
docker push hedzr/$APPNAME:$IMAGE_TAG
docker push hedzr/$APPNAME:latest
- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -20,7 +20,7 @@ Here is a first release for key functionality.

## News

### v0.5.8
### v0.5.9

- fixed release files

Expand Down
4 changes: 2 additions & 2 deletions doc.go
Expand Up @@ -6,6 +6,6 @@ package consul_tags

const (
AppName = "consul-tags" //
Version = "0.5.8" //
VersionInt = 0x000508 // using as
Version = "0.5.9" //
VersionInt = 0x000509 // using as
)

0 comments on commit 68632d9

Please sign in to comment.