Skip to content

Commit

Permalink
bootstrapping the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
undera committed Aug 22, 2022
1 parent a654a2f commit 3a11b78
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,11 @@ on:
branches: [ "main" ]

jobs:
test:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: "fs"
ignore-unfixed: true
format: "sarif"
output: "trivy-results.sarif"
severity: "CRITICAL"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results.sarif"
- name: Set up Go
uses: actions/setup-go@v3
with:
Expand Down
22 changes: 22 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .goreleaser.yml
# Build customization
builds:
- main: ./main.go
binary: helm-dashboard
ldflags: -s -w -X github.com/komodorio/helm-dashboard/main.version={{.Version}} -X github.com/komodorio/helm-dashboard/main.commit={{.Commit}}
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
archives:
- id: helm-dashboard
format: tar.gz
replacements:
amd64: x86_64
darwin: Darwin
linux: Linux
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import (
"net/http"
)

var (
version = "dev"
commit = "dev"
)

func main() {
go func() {
err := webbrowser.Open("http://localhost:8080")
Expand Down

0 comments on commit 3a11b78

Please sign in to comment.