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

Fix release workflow #724

Merged
merged 4 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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.

Loading