-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CF CLI Bosh release to GitHub Action workflow (#19)
- Setup devcontainer-based local environment using cached base image - Use nekto/act to iterate on the pipeline locally - Extract shepherd leasing option into the separate remote action - Implenent machanism to sync GHA variables and secrets between repositories Co-authored-by: Michael Chinigo <[email protected]> Co-authored-by: Greg Weresch <[email protected]> Co-authored-by: Shwetha Gururaj <[email protected]> Co-authored-by: Joao De Almeida Pereira <[email protected]>
- Loading branch information
1 parent
4e9434d
commit 696d48b
Showing
39 changed files
with
813 additions
and
806 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,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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,9 @@ | ||
FROM ghcr.io/cloudfoundry/bosh-package-cf-cli-release-ci:main-latest | ||
|
||
RUN apt update && apt install --yes \ | ||
entr \ | ||
fzf \ | ||
htop \ | ||
neovim | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash |
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,24 @@ | ||
{ | ||
"name": "Cloudfoundry CLI Bosh Release", | ||
"dockerFile": "Dockerfile", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers/features/sshd:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"DavidAnson.vscode-markdownlint", | ||
"GitHub.vscode-pull-request-github", | ||
"editorconfig.editorconfig", | ||
"github.vscode-github-actions", | ||
"ms-vscode.makefile-tools", | ||
"ms-vsliveshare.vsliveshare", | ||
"timonwong.shellcheck", | ||
"vmware.vscode-concourse" | ||
] | ||
} | ||
} | ||
} |
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,10 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
|
||
[Makefile] | ||
indent_style = tab |
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,5 @@ | ||
AWS_S3_ACCESS_KEY_ID: fake-aws-s3-access-key-id | ||
AWS_S3_ASSUME_ROLE_ARN: fake-aws-s3-assume-role-arn | ||
AWS_S3_SECRET_ACCESS_KEY: fake-aws-s3-secret-access-key | ||
SHEPHERD_API_ENDPOINT: fake-shepherd-api-endpoint | ||
SHEPHERD_API_TOKEN: fake-shepherd-api-token |
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,6 @@ | ||
AWS_S3_REGION: us-east-2 | ||
AWS_S3_BUCKET: cf-cli-bosh-release-dev | ||
PRODUCTION: true | ||
# BRANCH_SUFFIX: -shadow | ||
# SKIP_TESTS: false | ||
# ENV_ID: |
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,19 @@ | ||
# GHA Workflows | ||
|
||
## [Create Bosh Release](create-bosh-release.yml) | ||
|
||
Why? To create a new cf cli bosh release including major cli versions. | ||
|
||
### Resources | ||
- [Old Concourse implementation of the release pipeline](https://ci.cli.fun/teams/main/pipelines/cf-cli-release-toolsmiths) | ||
- [pipeline definition](../../ci/pipeline-toolsmiths.yml) | ||
|
||
### Plan | ||
|
||
- Acquire cf cli linux binaries for v7, and v8 from s3 | ||
- Detect latest tag under each major version | ||
|
||
- ... | ||
|
||
- Upload (where?) newly created cf cli bosh release. | ||
- Update Releases section on GitHub https://github.com/cloudfoundry/bosh-package-cf-cli-release/releases |
Oops, something went wrong.