Skip to content

Commit e93e2b8

Browse files
authored
Merge pull request #1 from ConductorOne/jirwin/initial
Initial commit
2 parents 2466a68 + 48e0055 commit e93e2b8

File tree

1,441 files changed

+389771
-117561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,441 files changed

+389771
-117561
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Install Go
8-
uses: actions/setup-go@v3
8+
uses: actions/setup-go@v4
99
with:
10-
go-version: 1.19.x
10+
go-version: 1.20.x
1111
- name: Checkout code
1212
uses: actions/checkout@v3
1313
- name: Run linters
@@ -18,13 +18,13 @@ jobs:
1818
go-test:
1919
strategy:
2020
matrix:
21-
go-version: [1.18.x, 1.19.x]
22-
platform: [ubuntu-latest]
21+
go-version: [1.20.x]
22+
platform: [ubuntu-latest, windows-latest]
2323
runs-on: ${{ matrix.platform }}
2424
steps:
2525
- name: Install Go
2626
if: success()
27-
uses: actions/setup-go@v3
27+
uses: actions/setup-go@v4
2828
with:
2929
go-version: ${{ matrix.go-version }}
3030
- name: Checkout code

.github/workflows/main.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Install Go
11-
uses: actions/setup-go@v3
11+
uses: actions/setup-go@v4
1212
with:
13-
go-version: 1.19.x
13+
go-version: 1.20.x
1414
- name: Checkout code
1515
uses: actions/checkout@v3
1616
- name: Run linters
@@ -21,13 +21,13 @@ jobs:
2121
go-test:
2222
strategy:
2323
matrix:
24-
go-version: [ 1.18.x, 1.19.x ]
25-
platform: [ ubuntu-latest ]
24+
go-version: [ 1.20.x ]
25+
platform: [ ubuntu-latest, windows-latest ]
2626
runs-on: ${{ matrix.platform }}
2727
steps:
2828
- name: Install Go
2929
if: success()
30-
uses: actions/setup-go@v3
30+
uses: actions/setup-go@v4
3131
with:
3232
go-version: ${{ matrix.go-version }}
3333
- name: Checkout code

.github/workflows/release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Go
17-
uses: actions/setup-go@v2
17+
uses: actions/setup-go@v4
1818
with:
19-
go-version: 1.19
19+
go-version: 1.20.x
2020
- name: Set up Gon
2121
run: brew tap mitchellh/gon && brew install mitchellh/gon/gon
2222
- name: Import Keychain Certs
@@ -25,10 +25,10 @@ jobs:
2525
p12-file-base64: ${{ secrets.APPLE_SIGNING_KEY_P12 }}
2626
p12-password: ${{ secrets.APPLE_SIGNING_KEY_P12_PASSWORD }}
2727
- name: Run GoReleaser
28-
uses: goreleaser/goreleaser-action@v2
28+
uses: goreleaser/goreleaser-action@v4
2929
with:
3030
version: latest
31-
args: release --rm-dist
31+
args: release --clean
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.RELENG_GITHUB_TOKEN }}
3434
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
@@ -40,9 +40,9 @@ jobs:
4040
with:
4141
fetch-depth: 0
4242
- name: Set up Go
43-
uses: actions/setup-go@v2
43+
uses: actions/setup-go@v4
4444
with:
45-
go-version: 1.19
45+
go-version: 1.20.x
4646
- name: Docker Login
4747
uses: docker/login-action@v1
4848
with:
@@ -52,9 +52,9 @@ jobs:
5252
- name: Set up Docker Buildx
5353
uses: docker/setup-buildx-action@v1
5454
- name: Run GoReleaser
55-
uses: goreleaser/goreleaser-action@v2
55+
uses: goreleaser/goreleaser-action@v4
5656
with:
5757
version: latest
58-
args: release --rm-dist -f .goreleaser.docker.yaml
58+
args: release --clean -f .goreleaser.docker.yaml
5959
env:
6060
GITHUB_TOKEN: ${{ secrets.RELENG_GITHUB_TOKEN }}

.gon-amd64.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"source": ["./dist/macos-amd64_darwin_amd64_v1/baton-mssqldb"],
3-
"bundle_id": "com.conductorone.baton-mssqldb",
2+
"source": ["./dist/macos-amd64_darwin_amd64_v1/baton-sql-server"],
3+
"bundle_id": "com.conductorone.baton-sql-server",
44
"apple_id": {
55
"username" : "[email protected]",
66
"password": "@env:AC_PASSWORD"
@@ -9,6 +9,6 @@
99
"application_identity": "Developer ID Application: Justin Gallardo (858DKH55XL)"
1010
},
1111
"zip" :{
12-
"output_path": "./dist/baton-mssqldb-darwin-amd64.signed.zip"
12+
"output_path": "./dist/baton-sql-server-darwin-amd64.signed.zip"
1313
}
1414
}

.gon-arm64.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"source": ["./dist/macos-arm64_darwin_arm64/baton-mssqldb"],
3-
"bundle_id": "com.conductorone.baton-mssqldb",
2+
"source": ["./dist/macos-arm64_darwin_arm64/baton-sql-server"],
3+
"bundle_id": "com.conductorone.baton-sql-server",
44
"apple_id": {
55
"username" : "[email protected]",
66
"password": "@env:AC_PASSWORD"
@@ -9,6 +9,6 @@
99
"application_identity": "Developer ID Application: Justin Gallardo (858DKH55XL)"
1010
},
1111
"zip" :{
12-
"output_path": "./dist/baton-mssqldb-darwin-arm64.signed.zip"
12+
"output_path": "./dist/baton-sql-server-darwin-arm64.signed.zip"
1313
}
1414
}

.goreleaser.docker.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
project_name: baton-mssqldb
1+
project_name: baton-sql-server
22
builds:
3-
- binary: baton-mssqldb
3+
- binary: baton-sql-server
44
env:
55
- CGO_ENABLED=0
66
id: linux
7-
main: ./cmd
7+
main: ./cmd/baton-sql-server
88
goos:
99
- linux
1010
goarch:
@@ -15,37 +15,37 @@ dockers:
1515
goos: linux
1616
goarch: amd64
1717
image_templates:
18-
- "ghcr.io/conductorone/baton-mssqldb:{{ .Version }}-amd64"
19-
- "ghcr.io/conductorone/baton-mssqldb:latest-amd64"
18+
- "ghcr.io/conductorone/baton-sql-server:{{ .Version }}-amd64"
19+
- "ghcr.io/conductorone/baton-sql-server:latest-amd64"
2020
build_flag_templates:
2121
- "--platform=linux/amd64"
2222
- "--label=org.opencontainers.image.created={{.Date}}"
23-
- "--label=org.opencontainers.image.title=baton-mssqldb"
23+
- "--label=org.opencontainers.image.title=baton-sql-server"
2424
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
2525
- "--label=org.opencontainers.image.version={{.Version}}"
26-
- "--label=org.opencontainers.image.source=https://github.com/conductorone/baton-mssqldb"
26+
- "--label=org.opencontainers.image.source=https://github.com/conductorone/baton-sql-server"
2727
- use: buildx
2828
goos: linux
2929
goarch: arm64
3030
image_templates:
31-
- "ghcr.io/conductorone/baton-mssqldb:{{ .Version }}-arm64"
32-
- "ghcr.io/conductorone/baton-mssqldb:latest-arm64"
31+
- "ghcr.io/conductorone/baton-sql-server:{{ .Version }}-arm64"
32+
- "ghcr.io/conductorone/baton-sql-server:latest-arm64"
3333
build_flag_templates:
3434
- "--platform=linux/arm64/v8"
3535
- "--label=org.opencontainers.image.created={{.Date}}"
36-
- "--label=org.opencontainers.image.title=baton-mssqldb"
36+
- "--label=org.opencontainers.image.title=baton-sql-server"
3737
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
3838
- "--label=org.opencontainers.image.version={{.Version}}"
39-
- "--label=org.opencontainers.image.source=https://github.com/conductorone/baton-mssqldb"
39+
- "--label=org.opencontainers.image.source=https://github.com/conductorone/baton-sql-server"
4040
docker_manifests:
41-
- name_template: ghcr.io/conductorone/baton-mssqldb:{{ .Version }}
41+
- name_template: ghcr.io/conductorone/baton-sql-server:{{ .Version }}
4242
image_templates:
43-
- ghcr.io/conductorone/baton-mssqldb:{{ .Version }}-amd64
44-
- ghcr.io/conductorone/baton-mssqldb:{{ .Version }}-arm64
45-
- name_template: ghcr.io/conductorone/baton-mssqldb:latest
43+
- ghcr.io/conductorone/baton-sql-server:{{ .Version }}-amd64
44+
- ghcr.io/conductorone/baton-sql-server:{{ .Version }}-arm64
45+
- name_template: ghcr.io/conductorone/baton-sql-server:latest
4646
image_templates:
47-
- ghcr.io/conductorone/baton-mssqldb:latest-amd64
48-
- ghcr.io/conductorone/baton-mssqldb:latest-arm64
47+
- ghcr.io/conductorone/baton-sql-server:latest-amd64
48+
- ghcr.io/conductorone/baton-sql-server:latest-arm64
4949
checksum:
5050
disable: true
5151
release:

.goreleaser.yaml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,50 @@
1-
project_name: baton-mssqldb
1+
project_name: baton-sql-server
22
builds:
3-
- binary: baton-mssqldb
3+
- binary: baton-sql-server
44
env:
55
- CGO_ENABLED=0
66
id: linux
7-
main: ./cmd
7+
main: ./cmd/baton-sql-server
88
goos:
99
- linux
1010
goarch:
1111
- amd64
1212
- arm64
13-
- binary: baton-mssqldb
13+
- binary: baton-sql-server
14+
env:
15+
- CGO_ENABLED=0
16+
id: windows
17+
main: ./cmd/baton-sql-server
18+
goos:
19+
- windows
20+
goarch:
21+
- amd64
22+
- binary: baton-sql-server
1423
env:
1524
- CGO_ENABLED=0
1625
id: macos-amd64
17-
main: ./cmd
26+
main: ./cmd/baton-sql-server
1827
goos:
1928
- darwin
2029
goarch:
2130
- amd64
2231
hooks:
2332
post:
2433
- gon .gon-amd64.json
25-
- mv dist/baton-mssqldb-darwin-amd64.signed.zip dist/macos-amd64_darwin_amd64_v1/baton-mssqldb
26-
- binary: baton-mssqldb
34+
- mv dist/baton-sql-server-darwin-amd64.signed.zip dist/macos-amd64_darwin_amd64_v1/baton-sql-server
35+
- binary: baton-sql-server
2736
env:
2837
- CGO_ENABLED=0
2938
id: macos-arm64
30-
main: ./cmd
39+
main: ./cmd/baton-sql-server
3140
goos:
3241
- darwin
3342
goarch:
3443
- arm64
3544
hooks:
3645
post:
3746
- gon .gon-arm64.json
38-
- mv dist/baton-mssqldb-darwin-arm64.signed.zip dist/macos-arm64_darwin_arm64/baton-mssqldb
47+
- mv dist/baton-sql-server-darwin-arm64.signed.zip dist/macos-arm64_darwin_arm64/baton-sql-server
3948
archives:
4049
- id: linux-archive
4150
builds:
@@ -44,6 +53,13 @@ archives:
4453
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
4554
files:
4655
- none*
56+
- id: windows-archive
57+
builds:
58+
- windows
59+
format: zip
60+
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
61+
files:
62+
- none*
4763
- id: darwin-archive
4864
builds:
4965
- macos-amd64
@@ -56,11 +72,13 @@ release:
5672
ids:
5773
- linux-archive
5874
- darwin-archive
75+
- windows-archive
5976
snapshot:
6077
name_template: "{{ incpatch .Version }}-dev"
6178
checksum:
6279
ids:
6380
- linux-archive
81+
- windows-archive
6482
extra_files:
6583
- glob: ./dist/*-darwin-amd64.zip
6684
- glob: ./dist/*-darwin-arm64.zip
@@ -71,9 +89,9 @@ brews:
7189
folder: Formula
7290
homepage: https://conductorone.com
7391
test: |
74-
system "#{bin}/baton-mssqldb -v"
92+
system "#{bin}/baton-sql-server -v"
7593
install: |-
76-
bin.install "baton-mssqldb"
94+
bin.install "baton-sql-server"
7795
changelog:
7896
filters:
7997
exclude:

0 commit comments

Comments
 (0)