Skip to content

Commit 0d5e55f

Browse files
authored
Fix release workflow (#724)
1 parent 8da1c09 commit 0d5e55f

File tree

7 files changed

+17
-18
lines changed

7 files changed

+17
-18
lines changed

.github/workflows/release-branch.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ jobs:
182182
if: ${{ inputs.publishPackages == true }}
183183
env:
184184
TOKEN: ${{ inputs.uploadJWT }}
185+
UPLOAD_URL: ${{ secrets.UPLOAD_URL }}
185186
run: |
186-
UPLOAD_URL=${{ secrets.UPLOAD_URL}} make release
187+
make release
187188
- name: Publish Github Release
188189
if: ${{ inputs.publishPackages == true }}
189190
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1

Makefile.packaging

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ ALMA_ARCHS?=aarch64 x86_64
2424
AMAZON_VERSIONS?=amazon-2 amazon-2023
2525
AMAZON_ARCHS?=aarch64 x86_64
2626

27-
UPLOAD_URL ?= "https://up-ap.nginx.com/"
28-
2927
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
3028
# Release Packaging #
3129
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

sdk/config_helpers.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ func updateNginxConfigFromPayload(
174174

175175
// cache the directory map, so we can look up using the base
176176
directoryMap := newDirectoryMap()
177-
formatMap := map[string]string{} // map of accessLog/errorLog formats
178-
seen := make(map[string]struct{}) // local cache of seen files
177+
formatMap := map[string]string{} // map of accessLog/errorLog formats
178+
seen := make(map[string]struct{}) // local cache of seen files
179179
seenCerts := make(map[string]*x509.Certificate) // local cache of seen certs
180180

181181
// Add files to the zipped config in a consistent order.

sdk/config_helpers_test.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,8 @@ var tests = []struct {
512512
},
513513
},
514514
expectedAuxFiles: map[string]struct{}{
515-
"/tmp/testdata/foo/test.html": {},
516-
"/tmp/testdata/nginx/ca/ca.crt": {},
515+
"/tmp/testdata/foo/test.html": {},
516+
"/tmp/testdata/nginx/ca/ca.crt": {},
517517
},
518518
},
519519
{
@@ -795,8 +795,8 @@ var tests = []struct {
795795
},
796796
},
797797
expectedAuxFiles: map[string]struct{}{
798-
"/tmp/testdata/foo/test.html": {},
799-
"/tmp/testdata/nginx/ca/ca.crt": {},
798+
"/tmp/testdata/foo/test.html": {},
799+
"/tmp/testdata/nginx/ca/ca.crt": {},
800800
},
801801
},
802802
}
@@ -883,7 +883,7 @@ func TestGetNginxConfig(t *testing.T) {
883883
resultFile := resultDir.Files[fileIndex]
884884
assert.Equal(t, expectedFile.Name, resultFile.Name)
885885
assert.Equal(t, expectedFile.Permissions, resultFile.Permissions)
886-
assert.Equal(t, expectedFile.Lines, resultFile.Lines, "unexpected line count for " + expectedDirectory.Name + "/" +expectedFile.Name)
886+
assert.Equal(t, expectedFile.Lines, resultFile.Lines, "unexpected line count for "+expectedDirectory.Name+"/"+expectedFile.Name)
887887
}
888888
}
889889

@@ -1520,9 +1520,9 @@ func getCertMeta(file string) crtMetaFields {
15201520
}
15211521

15221522
func generateCertificates(algoname string) error {
1523-
certs := []string { "ca", "proxy", "trusted" }
1523+
certs := []string{"ca", "proxy", "trusted"}
15241524
var cmd1 *exec.Cmd
1525-
1525+
15261526
for _, cert := range certs {
15271527
local := fmt.Sprintf("'%s.local'", cert)
15281528
output := fmt.Sprintf("certs/conf/%s/", cert)

test/integration/vendor/github.com/nginx/agent/sdk/v2/config_helpers.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/performance/vendor/github.com/nginx/agent/sdk/v2/config_helpers.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/nginx/agent/sdk/v2/config_helpers.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)