forked from integrations/terraform-provider-github
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'refs/tags/v5.45.0-fl.1' into update-6.2.1
# Conflicts: # .github/workflows/add_to_octokit_project.yml
- Loading branch information
Showing
5 changed files
with
194 additions
and
20 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 |
---|---|---|
@@ -1,20 +0,0 @@ | ||
name: Add PRs and issues to Octokit org project | ||
|
||
on: | ||
issues: | ||
types: [reopened, opened] | ||
pull_request_target: | ||
types: [reopened, opened] | ||
|
||
jobs: | ||
add-to-project: | ||
name: Add issue to project | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
project-url: https://github.com/orgs/octokit/projects/10 | ||
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }} | ||
labeled: "Status: Stale" | ||
label-operator: NOT | ||
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,17 @@ | ||
--- | ||
name: Backup Repository | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
backup: | ||
uses: Flaconi/github-reusable-workflow/.github/workflows/backups.yml@v1 | ||
with: | ||
enabled: True | ||
region: eu-central-1 | ||
secrets: | ||
iam_role_arn: ${{ secrets.BACKUP_REPO_IAM_ROLE }} | ||
bucket_name: ${{ secrets.BACKUP_REPO_BUCKET }} |
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,84 @@ | ||
# Flaconi | ||
|
||
This document describes the specifics required for maintaining our own GitHub provider until | ||
this PR has been merged: https://github.com/integrations/terraform-provider-github/pull/802 | ||
(by https://github.com/n0rad/terraform-provider-github) | ||
|
||
|
||
## Keep branches up-to-date | ||
```bash | ||
|
||
# Update our own code | ||
git checkout main | ||
git pull origin main | ||
git checkout -b updates | ||
|
||
# Update integrations/terraform-provider-github | ||
git remote add integrations https://github.com/integrations/terraform-provider-github | ||
git merge -S integrations/main | ||
|
||
# Update PR 802 | ||
git remote add n0rad https://github.com/n0rad/terraform-provider-github | ||
git merge -S n0rad/master | ||
|
||
``` | ||
|
||
## Build release artifacts | ||
|
||
When creating a new GitHub release, use the same release name (and git tag) as | ||
integrations/terraform-provider-github is using for its latest. We're simply enhancing it | ||
with n0rad's addition and want to follow their version scheme. | ||
|
||
1. Delete latest tag from `integrations/terraform-provider-github` (we're overwriting it) | ||
```bash | ||
git tag -d v4.19.0 | ||
git push --delete origin v4.19.0 | ||
``` | ||
2. Create git tag with `v[0-9]\.[0-9]\.[0-9]` (e.g.: `v4.19.0`) | ||
3. Create a GitHub Release with name: `v[0-9]\.[0-9]\.[0-9]` (e.g.: `v4.19.0`) | ||
4. Create `release/` directory | ||
```bash | ||
mkdir release | ||
``` | ||
5. Build Linux artifacts: | ||
```bash | ||
mkdir .cache | ||
docker run -it --rm --user $(id -u):$(id -g) -v $(pwd)/.cache:/.cache -v $(pwd):/data -v $(pwd)/release:/go/bin -w /data golang make fmt | ||
docker run -it --rm --user $(id -u):$(id -g) -v $(pwd)/.cache:/.cache -v $(pwd):/data -v $(pwd)/release:/go/bin -w /data golang make build | ||
mv release/terraform-provider-github release/terraform-provider-github_4.19.0_linux_amd64 | ||
``` | ||
6. Build MacOS artifacts (requires to be on a Mac): | ||
```bash | ||
make fmt | ||
make build | ||
cp /go/bin/terraform-provider-github release/terraform-provider-github_4.19.0_darwin_amd64 | ||
``` | ||
7. Pack artifacts for release page | ||
```bash | ||
# Enter release/ directory | ||
cd release | ||
|
||
# Make executable | ||
chmod +x * | ||
|
||
# Zip files | ||
zip terraform-provider-github_4.19.0_linux_amd64.zip terraform-provider-github_4.19.0_linux_amd64 | ||
zip terraform-provider-github_4.19.0_darwin_amd64.zip terraform-provider-github_4.19.0_darwin_amd64 | ||
|
||
# Create SHA256SUMS file | ||
shasum -a 256 terraform-provider-github_4.19.0_linux_amd64.zip > terraform-provider-github_4.19.0_SHA256SUMS | ||
shasum -a 256 terraform-provider-github_4.19.0_darwin_amd64.zip >> terraform-provider-github_4.19.0_SHA256SUMS | ||
|
||
# Create binary signature of SHA256SUMS file | ||
# Use the same gpg identity as uploaded in Terraform Registry account (`EB10297E7BD3F3AD`) | ||
gpg \ | ||
--local-user EB10297E7BD3F3AD \ | ||
--output terraform-provider-github_4.19.0_SHA256SUMS.sig \ | ||
--detach-sign terraform-provider-github_4.19.0_SHA256SUMS | ||
``` | ||
8. Upload the following files into the GitHub release: | ||
- terraform-provider-github_4.19.0_linux_amd64.zip | ||
- terraform-provider-github_4.19.0_darwin_amd64.zip | ||
- terraform-provider-github_4.19.0_SHA256SUMS | ||
- terraform-provider-github_4.19.0_SHA256SUMS.sig | ||
9. Update provider at registry: https://registry.terraform.io/publish/provider/github/Flaconi/terraform-provider-github |
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