Commit graph

35 commits

Author SHA1 Message Date
hashicorp-tsccr[bot]
2ce9efcdcd Result of tsccr-helper -log-level=info gha update .github/ 2025-02-01 06:03:09 +00:00
hashicorp-tsccr[bot]
ea9d02d596 Result of tsccr-helper -log-level=info gha update .github/ 2025-01-20 17:25:44 -05:00
Nikolay Edigaryev
c6427d2257 build: ensure that LC_UUID is generated for Darwin binaries 2024-11-22 13:29:35 -05:00
hashicorp-tsccr[bot]
0e825e0a79 Result of tsccr-helper -log-level=info gha update . 2024-10-16 13:27:38 -04:00
hashicorp-tsccr[bot]
703e0de15c
Result of tsccr-helper -log-level=info gha update . (#13156)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2024-09-05 14:28:55 -04:00
Wilken Rivera
2a206ccd68 Enable github workflows on feature branches 2024-08-12 16:07:28 -04:00
hashicorp-tsccr[bot]
eb77d54973
Result of tsccr-helper -log-level=info gha update . (#13131)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2024-08-05 14:03:40 -04:00
hashicorp-tsccr[bot]
863f3b0422 Result of tsccr-helper -log-level=info gha update . 2024-07-01 12:49:51 -04:00
hashicorp-tsccr[bot]
4bd7e951b7 Result of tsccr-helper -log-level=info gha update . 2024-06-03 14:20:36 -04:00
Wilken Rivera
61199aed0d Update internal HashiCorp actions to address Node 20 deprecation 2024-05-08 15:08:16 -04:00
Wilken Rivera
5e043ab3a0
Bump required actions to address Node.js 16 deprecation issue (#12958)
* Bump required actions to address Node.js 16 deprecation issue

* Update all tsccr approved actions

```shell
tsccr-helper gha update -latest .
```
2024-05-07 12:59:45 -04:00
Wilken Rivera
5f47c99ec4 Bump actions/checkout to address Node.js 16 deprecation issues 2024-05-07 10:39:37 -04:00
Wilken Rivera
0b00f52653 Copy license into zip with txt extension 2024-04-16 13:04:48 -04:00
Wilken Rivera
98fd73ad74 Add LICENSE to Linux packages 2024-04-16 13:04:48 -04:00
Wilken Rivera
72a2604b34 Add LICENSE to zipped Go binaries 2024-04-16 13:04:48 -04:00
Lucas Bajolet
3f083fe8ea github: only publish latest release images
When building the container images for Packer (light and full), we
should only publish them in the version being built is a release, and
not a pre-release.

Changing this means that both light and full latest will always be only
a final release at any time.
2024-04-16 10:13:29 -04:00
Wilken Rivera
320fd8d6fb
Update licensing for product release pipeline (#12570) 2023-08-11 15:19:13 -04:00
Lucas Bajolet
c6da777715 workflows: add docker-full to build workflow 2023-08-04 13:30:41 -04:00
hashicorp-tsccr[bot]
0194d839b0
Result of tsccr-helper -log-level=info -pin-all-workflows . (#12507)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-07-19 13:20:14 -04:00
Wilken Rivera
6db700f4cf Remove invalid quote from ldflags 2023-05-30 12:39:11 -04:00
Wilken Rivera
32c0deeff0 build GHA: Address set-output deprecation warnings 2023-05-30 12:04:44 -04:00
Wilken Rivera
53878a806f Update ldflags used to build release binaries
Prior to v1.8.6 a change to the release pipeline was introduced to
automatically set and bump product version information. In that change
the ldflags for striping debug symbols was removed resulting in binaries
with full debug symbols. Thus resulting in larger binary deliverables.
This change adds the missing ldflags back into the build pipeline.

Results for Packer 1.8.5
```
~>  unzip ~/packer_1.8.5_linux_amd64.zip
~>  go tool nm -size packer| c++filt
reading packer: no symbol section
reading packer: no symbols

```

Results for Packer 1.8.6
```
~>  unzip ~/packer_1.8.6_linux_amd64.zip
~>  go tool nm -size packer| c++filt | tail -n 10
 8d97ac0       2816 D vendor/golang.org/x/text/unicode/norm.nfcSparseValues
 8df2f60       6144 D vendor/golang.org/x/text/unicode/norm.nfcValues
 8f96fc8          8 D vendor/golang.org/x/text/unicode/norm.nfkcData
 8d985c0       2816 D vendor/golang.org/x/text/unicode/norm.nfkcIndex
 8fa40a0         48 D vendor/golang.org/x/text/unicode/norm.nfkcSparse
 8f4a3c0         24 D vendor/golang.org/x/text/unicode/norm.nfkcSparseOffset
 8db5c00       3580 D vendor/golang.org/x/text/unicode/norm.nfkcSparseValues
 8e48d60      12032 D vendor/golang.org/x/text/unicode/norm.nfkcValues
 8f96fd0          8 D vendor/golang.org/x/text/unicode/norm.recompMap
 8fe5bd0         12 D vendor/golang.org/x/text/unicode/norm.recompMapOnce
```

Closes #12392
2023-05-08 14:08:01 -04:00
hashicorp-tsccr[bot]
3ac1179841
Result of tsccr-helper -pin-all-workflows . (#12381)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-04-27 14:55:22 -04:00
dependabot[bot]
8a3caa1599 build(deps): bump hashicorp/actions-go-build from 0.1.7 to 0.1.9
Bumps [hashicorp/actions-go-build](https://github.com/hashicorp/actions-go-build) from 0.1.7 to 0.1.9.
- [Release notes](https://github.com/hashicorp/actions-go-build/releases)
- [Changelog](https://github.com/hashicorp/actions-go-build/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/actions-go-build/compare/v0.1.7...v0.1.9)

---
updated-dependencies:
- dependency-name: hashicorp/actions-go-build
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 11:48:33 -05:00
Wilken Rivera
150767792c Add release branches to CRT build pipeline
This change will allow for release branches `release/<MAJOR>.<MINOR>.x`
to be built add uploaded to the CRT build tool chain, which can then be
promoted and released publicly if needed.
2023-02-06 15:33:15 -05:00
claire labry
0d94e7d753
Introduce action-set-product-version for Packer (#12135)
This change introduces the new actions-set-product-version, a tiny, but mighty, GitHub action that acts as a bridge between the product repo and our new CRT feature: automated version bumping.

tl;dr automated version bumping has a new command (bob update version) in the bob CLI that automatically bumps the version to a new patch. This automation has been introduced to crt-workflows-common as a new workflow (with the new bob command) and handles version bumping at the end of the release pipeline (after being released to production); for example, 1.0.0→1.0.1 and 1.0.0-dev→1.0.0. Bumping the minor version (ie 1.0.x→1.1.0) is only supported manually via bob update version -bump minor, but not supported in CRT (this work is upcoming). This is made possible by adding the new event “bump-version” in the ci.hcl file in this PR.

What this small action does:

    Allows for the static version string from the version/VERSION file to be read by the new CRT workflow and automagically be bumped to the next version (whether it be a minor, or patch, or major version bump).
    Outputs an error if there’s no VERSION file in the version dir
    Outputs an error if there’s no version string in the VERSION file
    Is able to parse product_version if it is 1.3.0-alpha1 as 1.3.0 (example: when product_version = 1.3.0-alpha1, base_version = 1.3.0)
    Is able to parse prerelease product versions such as alpha1 (example prerelease_product_version = alpha1) in the statement above.
2023-01-19 14:02:09 -05:00
Wilken Rivera
6fb6ae8aee
Add ppc64le to binary release matrix for Linux (#11966)
Closes #11924
2022-09-28 10:12:28 -04:00
Wilken Rivera
cc5898022a
update action permissions (#11837)
* chore: Set permissions for GitHub actions

 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>

* Update permissions for newly added actions

* Remove deleted actions

Co-authored-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2022-06-14 12:08:39 -04:00
Wilken Rivera
805f8a4a86
Remove Linux package service configs and pre/post install scripts (#11831)
Packer does not require the installation of a Packer user or a service for Packer.
This change removes the preinst and postrm user scripts, and the config_dir directive for Packer rpm installations.

Closes #11828
2022-06-01 16:07:22 -04:00
Michele Degges
a8bbf7ae92
[CI-only] Build and publish dev dockerhub images (#11790) 2022-05-19 22:53:06 -07:00
Michele Degges
9a7a9dc7b1
Add workflow_dispatch caller to nightly_release job (#11610) 2022-02-28 17:15:45 -08:00
Michele Degges
c279bbb5f2
CI fix docker build job for nightly release failure (#11609) 2022-02-28 16:45:35 -08:00
Michele Degges
1506fef7d4
Fix docker build for workflow_call events (#11603) 2022-02-28 09:46:46 -08:00
Michele Degges
b4ea5cff07
Fix linux packaging CI step on workflow_call events (#11601) 2022-02-25 17:29:06 -08:00
Michele Degges
b63a9c9803
Onboard to CRT (#11564)
Onboard Packer to CRT

Co-authored-by: Wilken Rivera <wilken@hashicorp.com>
Co-authored-by: Claire Labry <claire@hashicorp.com>
2022-02-25 15:56:20 -08:00