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

Onboard to RelAPI #842

Merged
merged 5 commits into from
May 10, 2022
Merged

Onboard to RelAPI #842

merged 5 commits into from
May 10, 2022

Conversation

jeanneryan
Copy link
Contributor

@jeanneryan jeanneryan commented Mar 28, 2022

Onboard project to the Releases API.

Note: RelEng will merge this PR when ready

@@ -52,26 +52,19 @@ jobs:
name: Install signore
uses: hashicorp/setup-signore-package@v1
-
uses: hashicorp/setup-hc-releases@v1
name: Setup hc-releases
uses: hashicorp/actions-setup-hc-releases@v1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR is looking great!! Awesome job. Just one note- This will need to point to the v2 tag, which will grab our launch version (0.1.0) of the hc-releases CLI -- being published tmr!

Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking the time to update the release process and raising this PR!

Currently, the go-releaser CI action is failing because of a syntax error. It would be great if you could look into that.

.goreleaser.yml Outdated Show resolved Hide resolved
.goreleaser.yml Outdated
- HC_RELEASES_KEY={{ .Env.HC_RELEASES_KEY_STAGING }}
dir: "{{ dir .ArtifactPath }}"
cmd: |
hc-releases upload -file={{ .ArtifactName }} -product={{ .ProjectName }} -version={{ .Version }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before this change, we passed a directory containing all release artifacts to hc-releases, hc-releases uploaded all files from this directory to the S3 bucket.

After the change, we're passing only a single file as an argument to hc-releases. Will this work for a release with multiple files?

Copy link
Contributor

@claire-labry claire-labry Mar 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbanck after some testing, we've changed it from-file={{ .ArtifactName }} to -file={{ .ArtifactPath }} to allow multiple files.

.github/workflows/release.yml Outdated Show resolved Hide resolved
.goreleaser.yml Outdated Show resolved Hide resolved
@radeksimko radeksimko linked an issue Mar 31, 2022 that may be closed by this pull request
@radeksimko radeksimko added the ci Continuous integration/delivery related label Mar 31, 2022
@radeksimko radeksimko added this to the v0.27.0 milestone Apr 1, 2022
@jeanneryan jeanneryan changed the title Onboard to RelAPI [DO NOT MERGE] Onboard to RelAPI Apr 1, 2022
@jpogran jpogran removed this from the v0.27.0 milestone Apr 7, 2022
.goreleaser.yml Outdated
@@ -110,16 +110,14 @@ brews:
system "#{bin}/terraform-ls --version"

publishers:
- name: "hc-releases"
- name: upload
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: upload
- name: "hc-releases"

I think in the context of GoRelaser config, the original name is still relevant?

version: ${{ github.ref_name }}
hc-releases-host: ${{ secrets.HC_RELEASES_HOST_PROD }}
hc-releases-key: ${{ secrets.HC_RELEASES_KEY_PROD }}
hc-releases-source_env_key: ${{ secrets.HC_RELEASES_KEY_STAGING }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to replace all these *_STAGING references with *_PROD? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HC_RELEASES_KEY_STAGING is correct in this context as the hc-releases promote command (which we are running in the action) requires the API key of the source environment in order to promote.

.release/release-metadata.hcl Outdated Show resolved Hide resolved
@jeanneryan jeanneryan requested a review from a team as a code owner May 10, 2022 10:55
@sarahethompson
Copy link
Contributor

@radeksimko - I think we are good to go now 🤞

Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you everyone involved!

I have also removed all the secrets we no longer need and will merge this now.

@radeksimko radeksimko changed the title [DO NOT MERGE] Onboard to RelAPI Onboard to RelAPI May 10, 2022
@radeksimko radeksimko removed the request for review from dbanck May 10, 2022 11:16
@radeksimko radeksimko merged commit a82ef73 into main May 10, 2022
@radeksimko radeksimko deleted the RDX-433/onboard-to-relapi branch May 10, 2022 11:17
@radeksimko radeksimko added this to the v0.28.0 milestone May 20, 2022
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ci Continuous integration/delivery related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: Migrate to CRT (new release tooling/API)
8 participants