Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NH-85695 Add signing binaries mac #20

Merged
merged 24 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
07827ca
Change to Release key
ArkadiuszNitkaSWI Aug 6, 2024
693cdfa
Change version
ArkadiuszNitkaSWI Aug 6, 2024
fb455b9
Test of secret variable
ArkadiuszNitkaSWI Aug 19, 2024
b421288
Merge branch 'main' into NH-85695-Add-signing-binaries-mac
ArkadiuszNitkaSWI Aug 19, 2024
a958ea0
Test of secret variable 2
ArkadiuszNitkaSWI Aug 19, 2024
e26ff41
Test of secret variable 3
ArkadiuszNitkaSWI Aug 19, 2024
b8bc01e
Test of secret variable 4
ArkadiuszNitkaSWI Aug 21, 2024
6bf7382
Test of secret variable 5
ArkadiuszNitkaSWI Aug 21, 2024
dd6b19c
Test of secret variable 6
ArkadiuszNitkaSWI Aug 22, 2024
e2da086
Test of secret variable 7
ArkadiuszNitkaSWI Aug 26, 2024
43e6295
Test of secret variable 8
ArkadiuszNitkaSWI Aug 26, 2024
0fb4a79
Test of secret variable 9
ArkadiuszNitkaSWI Aug 26, 2024
1d2757c
Test of secret variable 10
ArkadiuszNitkaSWI Aug 27, 2024
f266641
Test of secret variable 11
ArkadiuszNitkaSWI Aug 27, 2024
3103e13
Test of secret variable 12
ArkadiuszNitkaSWI Aug 28, 2024
f142e5b
Test of secret variable 13
ArkadiuszNitkaSWI Sep 3, 2024
acdda99
Test notarization 1
ArkadiuszNitkaSWI Sep 4, 2024
6ac2bd7
Test notarization 2
ArkadiuszNitkaSWI Sep 4, 2024
658748e
Test notarization 3
ArkadiuszNitkaSWI Sep 4, 2024
b9e14f3
Test notarization 4
ArkadiuszNitkaSWI Sep 4, 2024
dc7ed71
Test notarization 5
ArkadiuszNitkaSWI Sep 4, 2024
ae96605
Cleaning up
ArkadiuszNitkaSWI Sep 4, 2024
05676aa
change golangci-lint
ArkadiuszNitkaSWI Sep 4, 2024
6461df1
change golangci-lint 2
ArkadiuszNitkaSWI Sep 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
version: v1.60.3
build:
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ permissions:
jobs:
goreleaser:
runs-on: ubuntu-latest
environment: prod
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -37,3 +38,9 @@ jobs:
SP_CI_USER_TOKEN: ${{ secrets.SP_CI_USER_TOKEN }}
SP_ORGANIZATION_ID: ${{ secrets.SP_ORGANIZATION_ID }}
SP_PROJECT: ${{ secrets.SP_PROJECT }}

SWO_ISSUER_ID: ${{ secrets.SWO_ISSUER_ID }}
SWO_KEY_ID: ${{ secrets.SWO_KEY_ID }}
SWO_MAC_P8_FILE: ${{ secrets.SWO_MAC_P8_FILE }}
SWO_MAC_P12_CERT: ${{ secrets.SWO_MAC_P12_CERT }}
SWO_P12_PASSWORD: ${{ secrets.SWO_P12_PASSWORD }}
18 changes: 18 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ env:
- CGO_ENABLED=0
- REPO_OWNER=solarwinds
- REPO_NAME=swo-cli

builds:
- main: ./cmd/swo/main.go
id: linux
Expand All @@ -27,6 +28,7 @@ builds:
- SP_ARTIFACT_CONFIGURATION=exe
cmd: pwsh -c "Submit-SigningRequest -ApiToken "$env:SP_CI_USER_TOKEN" -OrganizationId "$env:SP_ORGANIZATION_ID" -ProjectSlug "$env:SP_PROJECT" -SigningPolicySlug "$env:SP_SIGNING_POLICY" -ArtifactConfigurationSlug "$env:SP_ARTIFACT_CONFIGURATION" -InputArtifactPath '{{ .Path }}' -OutputArtifactPath '{{ .Path }}' -Force -WaitForCompletion"
output: true

archives:
- builds:
- win
Expand All @@ -42,6 +44,22 @@ universal_binaries:
replace: true
name_template: "swo"

notarize:
macos:
- enabled: '{{ isEnvSet "SWO_MAC_P12_CERT" }}'
ids:
- mac
sign:
certificate: "{{.Env.SWO_MAC_P12_CERT}}"
password: "{{.Env.SWO_P12_PASSWORD}}"

notarize:
issuer_id: "{{.Env.SWO_ISSUER_ID}}"
key_id: "{{.Env.SWO_KEY_ID}}"
key: "{{.Env.SWO_MAC_P8_FILE}}"
wait: true
timeout: 20m

changelog:
disable: true

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
golangci-lint-version = v1.56.1
golangci-lint-version = v1.60.3

.PHONY: install-golangci-lint
install-golangci-lint:
Expand Down
Loading