Skip to content

Commit

Permalink
Fix release workflow (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley authored Jun 25, 2024
1 parent 8da1c09 commit 0d5e55f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ jobs:
if: ${{ inputs.publishPackages == true }}
env:
TOKEN: ${{ inputs.uploadJWT }}
UPLOAD_URL: ${{ secrets.UPLOAD_URL }}
run: |
UPLOAD_URL=${{ secrets.UPLOAD_URL}} make release
make release
- name: Publish Github Release
if: ${{ inputs.publishPackages == true }}
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand Down
2 changes: 0 additions & 2 deletions Makefile.packaging
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ ALMA_ARCHS?=aarch64 x86_64
AMAZON_VERSIONS?=amazon-2 amazon-2023
AMAZON_ARCHS?=aarch64 x86_64

UPLOAD_URL ?= "https://up-ap.nginx.com/"

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Release Packaging #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down
4 changes: 2 additions & 2 deletions sdk/config_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ func updateNginxConfigFromPayload(

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

// Add files to the zipped config in a consistent order.
Expand Down
14 changes: 7 additions & 7 deletions sdk/config_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,8 @@ var tests = []struct {
},
},
expectedAuxFiles: map[string]struct{}{
"/tmp/testdata/foo/test.html": {},
"/tmp/testdata/nginx/ca/ca.crt": {},
"/tmp/testdata/foo/test.html": {},
"/tmp/testdata/nginx/ca/ca.crt": {},
},
},
{
Expand Down Expand Up @@ -795,8 +795,8 @@ var tests = []struct {
},
},
expectedAuxFiles: map[string]struct{}{
"/tmp/testdata/foo/test.html": {},
"/tmp/testdata/nginx/ca/ca.crt": {},
"/tmp/testdata/foo/test.html": {},
"/tmp/testdata/nginx/ca/ca.crt": {},
},
},
}
Expand Down Expand Up @@ -883,7 +883,7 @@ func TestGetNginxConfig(t *testing.T) {
resultFile := resultDir.Files[fileIndex]
assert.Equal(t, expectedFile.Name, resultFile.Name)
assert.Equal(t, expectedFile.Permissions, resultFile.Permissions)
assert.Equal(t, expectedFile.Lines, resultFile.Lines, "unexpected line count for " + expectedDirectory.Name + "/" +expectedFile.Name)
assert.Equal(t, expectedFile.Lines, resultFile.Lines, "unexpected line count for "+expectedDirectory.Name+"/"+expectedFile.Name)
}
}

Expand Down Expand Up @@ -1520,9 +1520,9 @@ func getCertMeta(file string) crtMetaFields {
}

func generateCertificates(algoname string) error {
certs := []string { "ca", "proxy", "trusted" }
certs := []string{"ca", "proxy", "trusted"}
var cmd1 *exec.Cmd

for _, cert := range certs {
local := fmt.Sprintf("'%s.local'", cert)
output := fmt.Sprintf("certs/conf/%s/", cert)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0d5e55f

Please sign in to comment.