Skip to content

Commit

Permalink
ci: Add action to publish Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheusv committed Dec 23, 2020
1 parent a0633d4 commit 807b30a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,27 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.15

- name : Set outputs
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})

- name: Release binaries
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Release Docker image
uses: elgohr/Publish-Docker-Github-Action@master
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
with:
name: insidersec/insider
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
buildargs: GO_VERSION=1.15
tags: "latest,${{ env.RELEASE_VERSION }}"
tag_names: true

0 comments on commit 807b30a

Please sign in to comment.