Skip to content

Commit

Permalink
fix: container release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rayanebel committed Jan 8, 2025
1 parent cc5fdbd commit 7c59e1c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
name: Build & Push Container Images
with:
Expand Down
47 changes: 44 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,54 @@ before:
hooks:
- go mod tidy
builds:
- id: cardano-validator-watcher
- id: cardano-validator-watcher-darwin-amd64
binary: cardano-validator-watcher
main: cmd/watcher/main.go
goarch:
- amd64
goos:
- darwin
env:
- CGO_ENABLED=0
- CC=o64-clang
- CXX=o64-clang++
ldflags:
- "-s -w"
- id: cardano-validator-watcher-darwin-arm64
binary: cardano-validator-watcher
main: cmd/watcher/main.go
goarch:
- arm64
goos:
- linux
- darwin
env:
- CC=oa64-clang
- CXX=oa64-clang++
ldflags:
- "-s -w"
- id: cardano-validator-watcher-linux-amd64
binary: cardano-validator-watcher
main: cmd/watcher/main.go
goarch:
- amd64
goos:
- linux
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
ldflags:
- "-s -w"
- id: cardano-validator-watcher-linux-arm64
binary: cardano-validator-watcher
main: cmd/watcher/main.go
goarch:
- arm64
goos:
- linux
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
ldflags:
- "-s -w"
archives:
- format: tar.gz
name_template: '{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
Expand Down

0 comments on commit 7c59e1c

Please sign in to comment.