Skip to content

Commit

Permalink
Another try to fix docker push problem
Browse files Browse the repository at this point in the history
  • Loading branch information
empire committed Mar 27, 2021
1 parent 89b6d3c commit f98b557
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,35 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

-
name: Cache Go modules
uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: Diff
run: git diff
-
name: Docker Login
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "${GITHUB_TOKEN}" | docker login ghcr.io --username $GITHUB_ACTOR --password-stdin
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand All @@ -28,7 +50,6 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

-
name: Upload assets
uses: actions/upload-artifact@v2
Expand Down
15 changes: 15 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,18 @@ changelog:
exclude:
- '^docs:'
- '^test:'
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: http://github.com/empire/go-tse
description: Download tickers from tse
maintainer: Hossein Zolfi <[email protected]>
license: MIT
vendor: Go-Tse
formats:
- apk
- deb
- rpm
dependencies:
- git
recommends:
- golang

0 comments on commit f98b557

Please sign in to comment.