-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cgo goreleaser alt solution (#2613)
<!-- Feel free to delete comments as you fill this in --> <!-- summary of changes --> ## Test Plan <!-- detail ways in which this PR has been tested or needs to be tested --> * [ ] acceptance tests <!-- add more below if you think they are relevant --> * [ ] … ## References <!-- issues documentation links, etc --> *
- Loading branch information
1 parent
c48ec7d
commit 5d31856
Showing
3 changed files
with
104 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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,85 @@ | ||
# Run Locally | ||
|
||
First install [act](https://github.com/nektos/act). | ||
|
||
```bash | ||
brew install act | ||
``` | ||
|
||
And you need to have a container runtime. For example, [Docker Desktop](https://www.docker.com/products/docker-desktop/) or [Colima](https://github.com/abiosoft/colima) | ||
|
||
|
||
```bash | ||
brew install colima | ||
colima start | ||
``` | ||
|
||
## Generate GPG Key | ||
|
||
You need a local GPG key. If you don't have one, you can generate one following the instructions [here](https://developer.hashicorp.com/terraform/tutorials/providers-plugin-framework/providers-plugin-framework-release-publish) | ||
|
||
Next, ensure you have secrets that would have been set on the environment of the GitHub repo locally puto in a `.secrets` file. Example: | ||
|
||
```bash | ||
GITHUB_TOKEN="ghp_Y26ot7vs2Zldl1PjUisTPI2qm3tqx32ubCef" | ||
GPG_PASSPHRASE="12345678" | ||
GPG_PRIVATE_KEY="-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
mQINBGXynhABEADCKMXkE/xrrYj0FlY03hgUcs/mZiGN6QaMDVOgG/gN7maqj1Y1 | ||
+/U82InzZ4pdhWb5WQ0bty6VBjC3rfHj6lxJcts2JfYJ/z2E85ukg7T5DAo/+bd9 | ||
GezHB9ucsTOgxgHpibFlBGQQToXFamPmbuYLBzW/x1M1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2SYB0 | ||
UBgfRRQIB6wb1LJmxRnpaezczJiJDQDwNWguv/tE96l4L5pxHag+2JXlDNTnPdmX | ||
15AFDfHrfgUh81mc/YPnODkVABEBAAGJAjYEGAEIACAWIQRxhvwHoijygv73M+zw | ||
HKTaI6me4wUCZfKeEAIbDAAKCRDwHKTaI6me4/JvD/936iNSqT7GpAdYQOKyDb46 | ||
CyPzJAzeaTtxw6XzX+KGckzBtuJrmx1U0Xhc1gQNNTqgASlkGAl786x0SjJVxEzv | ||
nvEbBhKfj6HMb/Udo2K4/A2K5xvcJlu6ymG94SIAIQOy7D34dio4Mx09B5AqcSv3 | ||
Nd62PuBTI2co4VY+VYdHtnjcgoCaHQM216l1W+b28PQg2ljIW8CTL/LN/DrNtcWy | ||
NjQ2F9kEv8k6tb7x8UEmg4evb30LMcsCnKehnN0gi2c09mvhRRmi3df1oNL3j6uR | ||
O1d8bxiI1R8OniAc3BIgHG8g/XCFQoTZLnwyPP7fQyO7IW0GTDWHHtz/nzXYMPJK | ||
8dUKJHIYuXeHxal9dS5iruHxOpH1pGpQkWUIbR86WAndqkfjlu0R0BNXmdjzUASM | ||
u/ncvgW2vfqzP7GbMa4kTioWqY3l/qw++icu62lu6HC43mcQv6REn3mBx6lNxbEo | ||
KKfZrMfYeH+qyA4Ku4BveUlgG/jLxU7dN4f/KNLx0uvbYa9lHCv0vfQ22TYGL1Qp | ||
8HDhIXxr7BH9OeoR752tpoWiGwmMvI/0bsKfdZnFAJ96yviet/08bLfGzgSTm9g6 | ||
NIpjNPWPjNbidFOEI6ZXYVSKF8UQzkfrhlCppeIRDaak92k4YZRQs9OLLCOzo4UK | ||
XB9qyVLh+018OvKWPdnRMQ== | ||
=0qkj | ||
-----END PGP PUBLIC KEY BLOCK-----" | ||
|
||
``` | ||
|
||
## Run specific workflow | ||
|
||
```bash | ||
act -W '.github/workflows/build.yml' -P macos-latest=-self-hosted | ||
``` |
This file contains 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 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