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

ci: Release binaries via CRT #96

Merged
merged 5 commits into from
Feb 2, 2023
Merged

ci: Release binaries via CRT #96

merged 5 commits into from
Feb 2, 2023

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Jan 26, 2023

This is a result of following the CRT onboarding guide.

I also prepared a PR for Homebrew tap: hashicorp/homebrew-tap#199 but we need to cut a first release before adding the automation & formula there, so merging that PR is not a blocker for this one. See hashicorp/homebrew-tap#200 for more.

I have also drafted a separate PR further simplifying/streamlining the release process in #99 but kept this PR to bare minimum.

TODO

  • Have access to cut releases granted to maintainers
  • Verify all staged artifacts were built correctly
  • Write release documentation

Artifact verification

gpg --verify hc-install_0.4.0-prototype_SHA256SUMS.72D7468F.sig hc-install_0.4.0-prototype_SHA256SUMS
gpg: Signature made Thu  2 Feb 10:08:31 2023 GMT
gpg:                using RSA key 374EC75B485913604A831CC7C820C6D5CD27AB87
gpg: Good signature from "HashiCorp Security (hashicorp.com/security) <security@hashicorp.com>" [ultimate]
shasum -a256 -c hc-install_0.4.0-prototype_SHA256SUMS
hc-install_0.4.0-prototype_darwin_amd64.zip: OK
hc-install_0.4.0-prototype_darwin_arm64.zip: OK
hc-install_0.4.0-prototype_freebsd_386.zip: OK
hc-install_0.4.0-prototype_freebsd_amd64.zip: OK
hc-install_0.4.0-prototype_freebsd_arm.zip: OK
hc-install_0.4.0-prototype_freebsd_arm64.zip: OK
hc-install_0.4.0-prototype_linux_386.zip: OK
hc-install_0.4.0-prototype_linux_amd64.zip: OK
hc-install_0.4.0-prototype_linux_arm.zip: OK
hc-install_0.4.0-prototype_linux_arm64.zip: OK
hc-install_0.4.0-prototype_openbsd_386.zip: OK
hc-install_0.4.0-prototype_openbsd_amd64.zip: OK
hc-install_0.4.0-prototype_solaris_amd64.zip: OK
hc-install_0.4.0-prototype_windows_386.zip: OK
hc-install_0.4.0-prototype_windows_amd64.zip: OK
hc-install_0.4.0-prototype_windows_arm64.zip: OK
unzip hc-install_0.4.0-prototype_darwin_arm64.zip
Archive:  hc-install_0.4.0-prototype_darwin_arm64.zip
  inflating: hc-install

codesign -dv --verbose=4 ./hc-install
Executable=/Users/radeksimko/Downloads/hc-install
Identifier=a.out
Format=Mach-O thin (arm64)
CodeDirectory v=20500 size=60881 flags=0x10000(runtime) hashes=1897+2 location=embedded
VersionPlatform=1
VersionMin=720896
VersionSDK=720896
Hash type=sha256 size=32
CandidateCDHash sha256=4e886eec7ddf14a16b4716d2683748425e98018f
CandidateCDHashFull sha256=4e886eec7ddf14a16b4716d2683748425e98018f4e392c0290f7ed7501cba534
Hash choices=sha256
CMSDigest=4e886eec7ddf14a16b4716d2683748425e98018f4e392c0290f7ed7501cba534
CMSDigestType=2
Executable Segment base=0
Executable Segment limit=4030464
Executable Segment flags=0x1
Page size=4096
CDHash=4e886eec7ddf14a16b4716d2683748425e98018f
Signature size=9045
Authority=Developer ID Application: Hashicorp, Inc. (D38WU7D763)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=2 Feb 2023 at 10:02:06
Info.plist=not bound
TeamIdentifier=D38WU7D763
Runtime Version=11.0.0
Sealed Resources=none
Internal requirements count=1 size=168
docker run -ti -v $(pwd):/packages centos /bin/bash
[root@7c874ff1d275 packages]# yum localinstall hc-install-0.4.0_prototype-1.aarch64.rpm
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:42:01 ago on Thu Feb  2 10:40:32 2023.
Dependencies resolved.
========================================================================================================================================================================================================================================================================
 Package                                                       Architecture                                               Version                                                                 Repository                                                       Size
========================================================================================================================================================================================================================================================================
Installing:
 hc-install                                                    aarch64                                                    0.4.0~prototype-1                                                       @commandline                                                    2.9 M

Transaction Summary
========================================================================================================================================================================================================================================================================
Install  1 Package

Total size: 2.9 M
Installed size: 6.8 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                1/1
  Installing       : hc-install-0.4.0~prototype-1.aarch64                                                                                                                                                                                                           1/1
  Verifying        : hc-install-0.4.0~prototype-1.aarch64                                                                                                                                                                                                           1/1

Installed:
  hc-install-0.4.0~prototype-1.aarch64

Complete!
[root@7c874ff1d275 packages]# hc-install --version
0.4.0-prototype
docker run -ti -v $(pwd):/packages ubuntu /bin/bash
root@c06fec0c8dfc:/packages# apt info ./hc-install_0.4.0_prototype-1_arm64.deb
Package: hc-install
Version: 0.4.0~prototype-1
Priority: optional
Section:
Maintainer: HashiCorp
Installed-Size: 7143 kB
Depends: openssl
Homepage: https://github.com/hashicorp/hc-install
Download-Size: 3032 kB
APT-Sources: /packages/hc-install_0.4.0_prototype-1_arm64.deb
Description: hc-install CLI allows installing multiple versions of HashiCorp products in automation

root@c06fec0c8dfc:/packages# apt install ./hc-install_0.4.0_prototype-1_arm64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'hc-install' instead of './hc-install_0.4.0_prototype-1_arm64.deb'
The following NEW packages will be installed:
  hc-install
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3032 kB of archives.
After this operation, 7143 kB of additional disk space will be used.
Get:1 /packages/hc-install_0.4.0_prototype-1_arm64.deb hc-install arm64 0.4.0~prototype-1 [3032 kB]
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package hc-install.
(Reading database ... 4692 files and directories currently installed.)
Preparing to unpack .../hc-install_0.4.0_prototype-1_arm64.deb ...
Unpacking hc-install (0.4.0~prototype-1) ...
Setting up hc-install (0.4.0~prototype-1) ...
root@c06fec0c8dfc:/packages# hc-install --version
0.4.0-prototype

Screenshot 2023-02-02 at 11 35 43

@radeksimko radeksimko force-pushed the ci-enroll-into-crt branch 9 times, most recently from 7be6cd4 to 7bb3003 Compare January 31, 2023 18:20
@radeksimko radeksimko force-pushed the ci-enroll-into-crt branch 2 times, most recently from f302cb3 to 271004d Compare February 2, 2023 08:44
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.

LGTM 👍

@radeksimko radeksimko marked this pull request as ready for review February 2, 2023 12:15
@radeksimko radeksimko merged commit 4943701 into main Feb 2, 2023
@radeksimko radeksimko deleted the ci-enroll-into-crt branch February 2, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants