File tree Expand file tree Collapse file tree 2 files changed +95
-1
lines changed
Expand file tree Collapse file tree 2 files changed +95
-1
lines changed Original file line number Diff line number Diff line change 1- # Copyright (c) Materialize Inc.
1+ # Copyright Ory Corp
2+ # SPDX-License-Identifier: Apache-2.0
23
34name : Release
45
@@ -11,7 +12,37 @@ permissions:
1112 contents : write
1213
1314jobs :
15+ acceptance-tests :
16+ name : Pre-release Acceptance Tests
17+ runs-on : ubuntu-slim
18+ timeout-minutes : 30
19+ env :
20+ ORY_WORKSPACE_API_KEY : ${{ secrets.ORY_WORKSPACE_API_KEY }}
21+ ORY_WORKSPACE_ID : ${{ secrets.ORY_WORKSPACE_ID }}
22+ ORY_CONSOLE_API_URL : ${{ secrets.ORY_CONSOLE_API_URL }}
23+ ORY_PROJECT_API_URL : ${{ secrets.ORY_PROJECT_API_URL }}
24+ steps :
25+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
26+ with :
27+ fetch-depth : 0
28+ - uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
29+ with :
30+ go-version-file : ' go.mod'
31+ cache : true
32+ - name : Install dependencies
33+ run : make deps-ci
34+ - name : Run Acceptance Tests
35+ env :
36+ ORY_KETO_TESTS_ENABLED : true
37+ ORY_B2B_ENABLED : true
38+ ORY_SOCIAL_PROVIDER_TESTS_ENABLED : true
39+ ORY_SCHEMA_TESTS_ENABLED : true
40+ ORY_PROJECT_TESTS_ENABLED : true
41+ run : ./scripts/run-acceptance-tests.sh -v -timeout 20m ./...
42+
1443 goreleaser :
44+ name : GoReleaser
45+ needs : acceptance-tests
1546 runs-on : ubuntu-slim
1647 steps :
1748 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Original file line number Diff line number Diff line change 1+ # Copyright Ory Corp
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ version : 2
5+
6+ before :
7+ hooks :
8+ - go mod tidy
9+
10+ builds :
11+ - env :
12+ - CGO_ENABLED=0
13+ mod_timestamp : " {{ .CommitTimestamp }}"
14+ flags :
15+ - -trimpath
16+ ldflags :
17+ - " -s -w -X main.version={{ .Version }}"
18+ goos :
19+ - freebsd
20+ - windows
21+ - linux
22+ - darwin
23+ goarch :
24+ - amd64
25+ - " 386"
26+ - arm
27+ - arm64
28+ ignore :
29+ - goos : darwin
30+ goarch : " 386"
31+ binary : " {{ .ProjectName }}_v{{ .Version }}"
32+
33+ archives :
34+ - formats :
35+ - zip
36+ name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
37+
38+ checksum :
39+ extra_files :
40+ - glob : " terraform-registry-manifest.json"
41+ name_template : " {{ .ProjectName }}_{{ .Version }}_manifest.json"
42+ name_template : " {{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
43+ algorithm : sha256
44+
45+ signs :
46+ - artifacts : checksum
47+ args :
48+ - " --batch"
49+ - " --local-user"
50+ - " {{ .Env.GPG_FINGERPRINT }}"
51+ - " --output"
52+ - " ${signature}"
53+ - " --detach-sign"
54+ - " ${artifact}"
55+
56+ release :
57+ draft : true
58+ extra_files :
59+ - glob : " terraform-registry-manifest.json"
60+ name_template : " {{ .ProjectName }}_{{ .Version }}_manifest.json"
61+
62+ changelog :
63+ disable : true
You can’t perform that action at this time.
0 commit comments