-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
1,118 additions
and
379 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 |
---|---|---|
|
@@ -20,6 +20,7 @@ tmp | |
my*.yml | ||
releases/**/*.tgz | ||
blobs | ||
version | ||
|
||
/logsearch-config | ||
/logsearch-config.tgz |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/config/private*.yml | ||
/config/*-private.yml | ||
/config/pr/ | ||
/config/pr.txt |
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,14 +1,50 @@ | ||
If you'll be uploading stuff, be sure to put your credentials in `config/private-main.yml`. Override buckets for testing. | ||
# CI (via Concourse) | ||
|
||
You might want to update your experimental concourse pipeline... | ||
Continuous Integration is nice when it all works out... | ||
|
||
$ fly configure \ | ||
--config pipelines/concourse.yml \ | ||
--vars-from config/default.yml \ | ||
--vars-from config/private-main.yml \ | ||
logsearch-boshrelease | ||
|
||
You might want to serve your local repository while tweaking scripts... | ||
## Pipelines | ||
|
||
$ git daemon --base-path=../ -v --listen=172.23.240.4 --port=9191 --export-all | ||
$ echo 'git-master-uri: "git://172.23.240.4:9191/"' >> config/private-main.yml | ||
Unconventionally, we've divided up several pipeline components to make them easier to reuse. Here are the main pipeline pieces... | ||
|
||
0. `dev` - this pipeline helps validate the quality of particular branches. It will monitor a particular branch for changes and, upon change, will run through all the appropriate tests. If they pass, the version file will be updated. | ||
0. `release` - this pipeline helps create final releases. Manually trigger the major, minor, or patch job to kick off creating the final release which will be committed, tagged, uploaded, and pushed. | ||
0. `pr` - this pipeline locally merges pull requests for testing and includes the `dev` pipeline to run the tests. | ||
|
||
To combine them, the `generate` script in their respective directories will dump the resulting pipeline to STDOUT. | ||
|
||
|
||
## Variables | ||
|
||
Configuration files with the variables `fly` wants are located in `ci/config/*.yml`. When customizing or adding secrets use a separate file with the convention of `ci/config/*-private.yml` (they have a higher precedence and will not be committed). | ||
|
||
|
||
## Configuration | ||
|
||
To re-apply all the pipelines, use the `fly-configure` script... | ||
|
||
$ FLY_TARGET=cilabs-meta ./ci/bin/fly-configure | ||
|
||
|
||
## Pull Requests | ||
|
||
If you want to start testing a particularl pull request, append the pull number to the list of approved pulls... | ||
|
||
$ echo 180 >> ci/config/pr.txt | ||
|
||
After running `fly-configure` to install the new PR pipeline, you'll want to unpause the pipeline to get it started. Going forward, it will automatically run when new commits are pushed for the PR. It does not currently update commit statuses within GitHub. | ||
|
||
|
||
## Bootstrap | ||
|
||
If you're setting up pipelines from scratch or for your own fork, you might need to initialize a few files... | ||
|
||
echo -n "22+dev.4" > version | ||
aws s3api put-object --bucket=logsearch-boshrelease --key=develop/version --body=version | ||
aws s3api put-object --bucket=logsearch-boshrelease --key=develop/version-wip --body=version | ||
|
||
echo -n "22.0.0" > version | ||
aws s3api put-object --bucket=logsearch-boshrelease --key=final/version --body=version | ||
aws s3api put-object --bucket=logsearch-boshrelease --key=final/version-wip --body=version | ||
|
||
rm version |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# | ||
# Where shall we store our artifacts? | ||
# | ||
|
||
artifact-bucket: "logsearch-boshrelease" | ||
|
||
# | ||
# GitHub Repository where we live | ||
# | ||
|
||
github-user: "logsearch" | ||
github-repository: "logsearch-boshrelease" | ||
|
||
# | ||
# Git Repository Access | ||
# | ||
|
||
repo-uri: "git@github.com:logsearch/logsearch-boshrelease.git" | ||
repo-key: "" | ||
|
||
|
||
# | ||
# GitHub Token for making API calls | ||
# | ||
|
||
github-api-token: ~ | ||
|
||
|
||
# | ||
# AWS Credentials (for uploading to the S3 blobstore) | ||
# | ||
|
||
aws-access-key: ~ | ||
aws-secret-key: ~ | ||
|
||
|
||
# | ||
# BOSH Lite access for running tests | ||
# | ||
|
||
bosh-lite-target: "https://192.0.2.1:25555" | ||
bosh-lite-username: "admin" | ||
bosh-lite-password: "admin" |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
repo-dev-branch: "develop" | ||
artifact-dev-prefix: "develop/" |
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 @@ | ||
repo-pr-key: ~ |
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 @@ | ||
artifact-release-prefix: "final/" |
Oops, something went wrong.