diff --git a/.github/workflows/edge.yml b/.github/workflows/edge.yml index 605bf315..a0b30de8 100644 --- a/.github/workflows/edge.yml +++ b/.github/workflows/edge.yml @@ -1,5 +1,5 @@ name: Release -on: [push, pull_request] +on: [push] env: PROJECT: "github.com/kelindar/talaria" GO111MODULE: "on" diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml new file mode 100644 index 00000000..7b4668c8 --- /dev/null +++ b/.github/workflows/latest.yml @@ -0,0 +1,29 @@ +name: Release +on: + push: + branches: + - master +env: + PROJECT: "github.com/kelindar/talaria" + GO111MODULE: "on" + +jobs: + publish: + name: Docker + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: 1.14 + id: go + - name: Login to DockerHub Registry + run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + - name: Build the Docker image + run: | + go build . + docker build . --file Dockerfile --tag kelindar/talaria:latest + - name: Push the Docker image + run: docker push kelindar/talaria:latest \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f8deb44..04f2eae6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,8 +29,4 @@ jobs: go build . docker build . --file Dockerfile --build-arg GO_BINARY=talaria --tag kelindar/talaria:${{steps.vars.outputs.tag}} - name: Push the tagged Docker image - run: docker push kelindar/talaria:${{steps.vars.outputs.tag}} - - name: Build the latest Docker image - run: docker build . --file Dockerfile --tag kelindar/talaria:latest - - name: Push the latest Docker image - run: docker push kelindar/talaria:latest \ No newline at end of file + run: docker push kelindar/talaria:${{steps.vars.outputs.tag}} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 769ae004..b741d63f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,5 @@ name: Test -on: [push, pull_request] +on: [push] env: PROJECT: "github.com/kelindar/talaria" GO111MODULE: "on" diff --git a/go.mod b/go.mod index b671af5c..621ebc16 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,7 @@ require ( github.com/hashicorp/memberlist v0.1.5 github.com/kelindar/binary v1.0.8 github.com/kelindar/loader v0.0.10 - github.com/kelindar/lua v0.0.5 + github.com/kelindar/lua v0.0.6 github.com/miekg/dns v1.1.22 // indirect github.com/myteksi/hystrix-go v1.1.3 github.com/samuel/go-thrift v0.0.0-20190219015601-e8b6b52668fe