diff --git a/.github/workflows/normal.yml b/.github/workflows/normal.yml index 02a6fa2b4..88b389d2c 100644 --- a/.github/workflows/normal.yml +++ b/.github/workflows/normal.yml @@ -9,10 +9,10 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Set up Go 1.15 + - name: Set up Go 1.16 uses: actions/setup-go@v1 with: - go-version: 1.15 + go-version: 1.16 id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8882a7a53..4acc9819d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,10 +9,10 @@ jobs: ci-ci-ci: runs-on: ubuntu-latest steps: - - name: Set up Go 1.15 + - name: Set up Go 1.16 uses: actions/setup-go@v1 with: - go-version: 1.15 + go-version: 1.16 id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 000000000..3d12f43cb --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,28 @@ +name: tag +on: + push: + tags: + - "*" +jobs: + build-tag-image: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Build x86 image + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: ehco1996/ehco + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + tag_names: true + dockerfile: build/Dockerfile + + - uses: actions/checkout@master + - name: Build arm image + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: ehco1996/ehco + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + tag_names: true + dockerfile: build/arm.Dockerfile diff --git a/README.md b/README.md index 0972ec501..f476bd9dd 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Go Report Card](https://goreportcard.com/badge/github.com/Ehco1996/ehco)](https://goreportcard.com/report/github.com/Ehco1996/ehco) [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/Ehco1996/ehco) +[![Docker Pulls](https://img.shields.io/docker/pulls/ehco1996/ehco)](https://hub.docker.com/r/ehco1996/ehco) ehco is a network relay tool and a typo :) diff --git a/internal/constant/constant.go b/internal/constant/constant.go index 8c6d5629a..3267895fc 100644 --- a/internal/constant/constant.go +++ b/internal/constant/constant.go @@ -3,7 +3,7 @@ package constant import "time" const ( - Version = "1.0.5" + Version = "1.0.6" MaxMWSSStreamCnt = 10 DialTimeOut = 3 * time.Second