-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from circleci/ONPREM-1263/use-goreleaser
Build binaries using GoReleaser
- Loading branch information
Showing
10 changed files
with
129 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
dist: ./target | ||
|
||
builds: | ||
- id: orchestrator | ||
main: ./cmd/orchestrator | ||
binary: ./bin/{{.Arch}}/orchestrator | ||
ldflags: &ldflags | ||
- -s -w | ||
- -X github.com/circleci/runner-init/cmd.Version={{.Env.BUILD_VERSION}} | ||
- -X github.com/circleci/runner-init/cmd.Date={{.Date}} | ||
env: [CGO_ENABLED=0] | ||
goos: [linux] | ||
goarch: [amd64, arm64] | ||
no_unique_dist_dir: true | ||
|
||
- id: fake-task-agent | ||
main: ./internal/faketaskagent | ||
binary: ./bin/{{.Arch}}/fake-task-agent | ||
ldflags: | ||
- -s -w | ||
env: [CGO_ENABLED=0] | ||
goos: [linux] | ||
goarch: [amd64, arm64] | ||
no_unique_dist_dir: true | ||
|
||
release: | ||
disable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package main | ||
|
||
import ( | ||
"log" //nolint:depguard // a non-O11y log is allowed for a top-level fatal exit | ||
|
||
"github.com/circleci/runner-init/cmd" | ||
) | ||
|
||
func main() { | ||
if err := run(cmd.Version, cmd.Date); err != nil { | ||
log.Fatal(err) | ||
} | ||
} | ||
|
||
//nolint:unparam // TODO | ||
func run(version, date string) (err error) { | ||
println(version, date) | ||
|
||
return err | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package cmd | ||
|
||
// Variables to be set by the linker | ||
var ( | ||
Version = "dev" | ||
Date = "" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/circleci/circleci-fake-agent | ||
module github.com/circleci/runner-init | ||
|
||
go 1.22.0 | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.0 |