-
Notifications
You must be signed in to change notification settings - Fork 368
ci: fix oss and ee release process and add ee-dryrun release process #10249
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9ed3cc2
ci: add gorelease ee dryrun
jgongd 563c54e
fix docker build arm images
jgongd e15ccd7
Fix oss release dryrun process
jgongd 0afbf68
fix: circleci config miss dryrun parameter
jgongd f83bc10
Publish ee release to oss repo
jgongd 4fe7baa
fix: pre-release label
jgongd d67dc5f
Correct the usage of .ENV.VERSION, .ENV.VERSION_DOCKER, and .VERSION …
jgongd 6160416
remove brews section in ee goreleaser
jgongd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| project_name: hpe-mlde-agent-dryrun | ||
|
|
||
| snapshot: | ||
| name_template: "{{ .Env.VERSION }}" | ||
|
|
||
| builds: | ||
| - main: ./cmd/determined-agent | ||
| id: determined-agent | ||
| binary: determined-agent | ||
| goos: | ||
| - linux | ||
| - darwin | ||
| goarch: | ||
| - amd64 | ||
| - arm64 | ||
|
|
||
| archives: | ||
| - wrap_in_directory: "true" | ||
| rlcp: true | ||
| files: | ||
| - src: "packaging/agent.yaml" | ||
| dst: "etc/determined/" | ||
| strip_parent: true | ||
| - src: "packaging/LICENSE" | ||
| strip_parent: true | ||
|
|
||
| nfpms: | ||
| - maintainer: "Determined AI <[email protected]>" | ||
| formats: | ||
| - deb | ||
| - rpm | ||
| contents: | ||
| - src: "packaging/agent.yaml" | ||
| dst: "/etc/determined/agent.yaml" | ||
| type: config|noreplace | ||
| file_info: | ||
| mode: 0644 | ||
| - src: "packaging/determined-agent.service" | ||
| dst: "/lib/systemd/system/determined-agent.service" | ||
|
|
||
| - src: "packaging/LICENSE" | ||
| dst: "/usr/share/licenses/determined-agent/LICENSE" | ||
| packager: rpm | ||
|
|
||
| - src: "packaging/LICENSE" | ||
| dst: "/usr/share/doc/determined-agent/copyright" | ||
| packager: deb | ||
|
|
||
| overrides: | ||
| deb: | ||
| scripts: | ||
| postinstall: packaging/debian/agent.postinst | ||
| preremove: packaging/debian/agent.prerm | ||
| postremove: packaging/debian/agent.postrm | ||
|
|
||
| release: | ||
| github: | ||
| owner: determined-ai | ||
| name: determined-dryrun | ||
|
|
||
| # be sure to keep this in sync between agent/master/helm | ||
| # the "include" functionality is only in the pro version | ||
| header: | | ||
| ## Release Notes | ||
| [{{ .Tag }}](https://github.com/determined-ai/determined-dryrun/blob/{{ .Tag }}/docs/release-notes.rst) | ||
|
|
||
| dockers: | ||
| # amd64 | ||
| - goos: linux | ||
| goarch: amd64 | ||
| use: buildx | ||
| build_flag_templates: | ||
| - --platform=linux/amd64 | ||
| - --builder=buildx-build | ||
| image_templates: | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-amd64" | ||
| extra_files: | ||
| - packaging/entrypoint.sh | ||
| - packaging/LICENSE | ||
| # arm64 | ||
| - goos: linux | ||
| goarch: arm64 | ||
| use: buildx | ||
| build_flag_templates: | ||
| - --platform=linux/arm64 | ||
| - --builder=buildx-build | ||
| image_templates: | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-arm64" | ||
| extra_files: | ||
| - packaging/entrypoint.sh | ||
| - packaging/LICENSE | ||
|
|
||
| docker_manifests: | ||
| - name_template: "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}" | ||
| image_templates: | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-amd64" | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-arm64" | ||
| - name_template: "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.ShortCommit}}" | ||
| image_templates: | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-amd64" | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-arm64" | ||
| - name_template: "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.Env.VERSION_DOCKER}}" | ||
| image_templates: | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-amd64" | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-arm64" | ||
| - name_template: "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:latest" | ||
| image_templates: | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-amd64" | ||
| - "{{.Env.DOCKER_REPO}}/{{.ProjectName}}:{{.FullCommit}}-arm64" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,19 @@ | ||
| project_name: determined-helm | ||
| project_name: hpe-mlde-helm | ||
|
|
||
| build: | ||
| skip: true | ||
|
|
||
| release: | ||
| github: | ||
| owner: determined-ai | ||
| name: determined-ee | ||
| name: determined | ||
| mode: keep-existing | ||
| extra_files: | ||
| - glob: build/determined-latest.tgz | ||
| name_template: "determined-helm-chart_{{ .Env.VERSION }}.tgz" | ||
| prerelease: auto | ||
| name_template: "hpe-mlde-helm-chart_{{ .VERSION }}.tgz" | ||
|
|
||
| # be sure to keep this in sync between agent/master/helm | ||
| # the "include" functionality is only in the pro version | ||
| header: | | ||
| ## Release Notes | ||
| [{{ .Tag }}](https://github.com/determined-ai/determined-ee/blob/{{ .Tag }}/docs/release-notes.rst) | ||
| [{{ .Tag }}](https://github.com/determined-ai/determined/blob/{{ .Tag }}/docs/release-notes.rst) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| project_name: hpe-mlde-helm-dryrun | ||
|
|
||
| build: | ||
| skip: true | ||
|
|
||
| release: | ||
| github: | ||
| owner: determined-ai | ||
| name: determined-dryrun | ||
| mode: keep-existing | ||
| extra_files: | ||
| - glob: build/determined-latest.tgz | ||
| name_template: "hpe-mlde-helm-chart_{{ .VERSION }}.tgz" | ||
|
|
||
| # be sure to keep this in sync between agent/master/helm | ||
| # the "include" functionality is only in the pro version | ||
| header: | | ||
| ## Release Notes | ||
| [{{ .Tag }}](https://github.com/determined-ai/determined-dryrun/blob/{{ .Tag }}/docs/release-notes.rst) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,10 +49,17 @@ release-gh-dryrun: | |
|
|
||
| .PHONY: release-gh-ee | ||
| release-gh-ee: export GORELEASER_CURRENT_TAG := $(VERSION_TAG)-ee | ||
| release-gh-ee: export GORELEASER_PREVIOUS_TAG := $(shell git tag --sort=-creatordate | grep -E '^v?[0-9.]+-ee$$' | grep "$(VERSION_TAG)-ee" -A1 | sed -n '2 p') | ||
| release-gh-ee: export GORELEASER_PREVIOUS_TAG := $(shell git tag --sort=-creatordate | grep -E '^v?[0-9.]+-ee$$' | grep "$(GORELEASER_CURRENT_TAG)" -A1 | sed -n '2 p') | ||
| release-gh-ee: | ||
| go install github.com/goreleaser/[email protected] | ||
| git clean -df | ||
| goreleaser --rm-dist | ||
| goreleaser --rm-dist -f ./.goreleaser_ee.yml | ||
|
|
||
| release-gh-ee-dryrun: ; | ||
| .PHONY: release-gh-ee-dryrun | ||
| # VERSION_TAG v0.38.0+dryrun becomes v0.38.0-ee+dryrun | ||
| release-gh-ee-dryrun: export GORELEASER_CURRENT_TAG := $(shell echo $(VERSION_TAG) | sed "s/+dryrun/-ee&/g") | ||
| release-gh-ee-dryrun: export GORELEASER_PREVIOUS_TAG := $(shell git tag --sort=-creatordate | grep -E '^v?[0-9.]+-ee$$' | grep "$(GORELEASER_CURRENT_TAG)" -A1 | sed -n '2 p') | ||
| release-gh-ee-dryrun: | ||
| go install github.com/goreleaser/[email protected] | ||
| git clean -df | ||
| goreleaser --rm-dist -f ./.goreleaser_ee_dryrun.yml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, "include" helps reduce duplication https://goreleaser.com/customization/includes/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm just doing that glare at them about making that feature only available in the pro version.