Skip to content

Commit

Permalink
Fixed goreleaser + docker release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice3man543 committed Mar 10, 2021
1 parent 74f1632 commit 9e730f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dockerhub-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Publish to Dockerhub Registry
pre: echo ::save-state name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
#pre: echo ::save-state name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: projectdiscovery/nuclei
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ env.STATE_RELEASE_VERSION }}"
tags: "latest" #"latest,${{ env.STATE_RELEASE_VERSION }}"
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
args: "release --rm-dist"
version: latest
version: latest
workdir: v2/

2 changes: 1 addition & 1 deletion .goreleaser.yml → v2/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ before:

builds:
- binary: nuclei
main: v2/cmd/nuclei/main.go
main: cmd/nuclei/main.go
goos:
- linux
- windows
Expand Down

0 comments on commit 9e730f4

Please sign in to comment.