Skip to content

Commit

Permalink
ci: enable pre-release tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdmike committed May 23, 2024
1 parent a12bcc7 commit 62fb1d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Semantic-Release CI

on:
push:
branches: [notyet]
branches: [main]

jobs:
release:
Expand Down
15 changes: 10 additions & 5 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"branches": [
"main",
"next"
{
"name": "main"
},
{
"name": "alpha",
"prerelease": "alpha"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
Expand All @@ -13,11 +18,11 @@
"assets": [
{
"path": "console_linux_x64",
"label": "Linux x64 RPC Executable"
"label": "Linux x64 Console Executable"
},
{
"path": "console_windows_x64.exe",
"label": "Windows x64 RPC Executable"
"label": "Windows x64 Console Executable"
}
]
}
Expand All @@ -26,7 +31,7 @@
[
"@semantic-release/exec",
{
"prepareCmd": "docker build -t vprodemo.azurecr.io/console:v${nextRelease.version} . && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags \"-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${nextRelease.version}'\" -trimpath -o console_linux_x64 ./cmd/app/main.go && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags \"-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${nextRelease.version}'\" -trimpath -o console_windows_x64.exe ./cmd/app/main.go",
"prepareCmd": "docker build -t vprodemo.azurecr.io/console:v${nextRelease.version} . && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags \"-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${nextRelease.version}'\" -trimpath -o console_linux_x64 ./cmd/app/main.go && CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -ldflags \"-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${nextRelease.version}'\" -trimpath -o console_windows_x64.exe ./cmd/app/main.go",
"publishCmd": "docker push vprodemo.azurecr.io/console:v${nextRelease.version}",
"verifyReleaseCmd": "echo v${nextRelease.version} > .nextVersion"
}
Expand Down

0 comments on commit 62fb1d5

Please sign in to comment.