-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/pip/requests-2.31.0
- Loading branch information
Showing
15 changed files
with
249 additions
and
33 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
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,89 @@ | ||
--- | ||
name: dev-deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-cloudgov-services-development-ssb: | ||
name: create services (development-ssb) | ||
environment: development-ssb | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: create services | ||
uses: cloud-gov/cg-cli-tools@main | ||
with: | ||
command: ./create-cloudgov-services.sh | ||
cf_org: gsa-datagov | ||
cf_space: development-ssb | ||
cf_username: ${{secrets.CF_SERVICE_USER}} | ||
cf_password: ${{secrets.CF_SERVICE_AUTH}} | ||
|
||
deploy-development-ssb: | ||
name: deploy (development-ssb) | ||
environment: development-ssb | ||
runs-on: ubuntu-latest | ||
needs: | ||
- create-cloudgov-services-development-ssb | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: build dependencies | ||
run: | | ||
chmod -R 777 logstash | ||
PWD=`pwd` make logstash-installation | ||
- name: deploy-logstash | ||
uses: cloud-gov/cg-cli-tools@main | ||
with: | ||
command: cf push --vars-file vars.development-ssb.yml --strategy rolling | ||
cf_org: gsa-datagov | ||
cf_space: development-ssb | ||
cf_username: ${{secrets.CF_SERVICE_USER}} | ||
cf_password: ${{secrets.CF_SERVICE_AUTH}} | ||
- name: smoke test logstash | ||
run: | | ||
sleep 150 # Logstash is very slow to start up | ||
[ "401" = "$(curl -w '%{http_code}' --output /dev/null --silent https://logstash-development-datagov.app.cloud.gov)" ] | ||
drain-apps-in-development-ssb: | ||
name: drain apps in development-ssb space | ||
environment: development-ssb | ||
runs-on: ubuntu-latest | ||
needs: | ||
- deploy-development-ssb | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: drain-development-ssb-space | ||
uses: cloud-gov/cg-cli-tools@37d58fc10abf00a45926e8886879c81a498f7ea8 | ||
with: | ||
command: | | ||
./create-space-drain.sh development-ssb | ||
cf_org: gsa-datagov | ||
cf_space: development-ssb | ||
cf_username: ${{secrets.CF_SERVICE_USER}} | ||
cf_password: ${{secrets.CF_SERVICE_AUTH}} | ||
|
||
drain-apps-in-development: | ||
name: drain apps in development space | ||
environment: development | ||
runs-on: ubuntu-latest | ||
needs: | ||
- deploy-development-ssb | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: drain-development-space | ||
uses: cloud-gov/cg-cli-tools@37d58fc10abf00a45926e8886879c81a498f7ea8 | ||
with: | ||
command: | | ||
./create-space-drain.sh development-ssb | ||
cf_org: gsa-datagov | ||
cf_space: development | ||
cf_username: ${{secrets.CF_SERVICE_USER}} | ||
cf_password: ${{secrets.CF_SERVICE_AUTH}} |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
logstash/logstash-oss-*-linux-x86_64.tar.gz | ||
logstash/plugins.zip | ||
logstash/awscliv2.zip | ||
.DS_Store |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
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,20 @@ | ||
--- | ||
# Name prefix for applications in the logstack. | ||
app_name: logstack | ||
|
||
# Options to pass the JVM | ||
logstash_java_options: -Xms512m -Xmx512m | ||
# Number of instances of the Logstash to run. | ||
logstash_instances: 1 | ||
# Amount of memory to provide to the Logstash (Java) application. | ||
logstash_memory: 1024 | ||
# Assign route for the log shipper. This will be used as the logdrain for other | ||
# Cloud Foundry applications. | ||
hostname: logstash-development-datagov | ||
domain: app.cloud.gov | ||
https_proxy: | ||
|
||
# Optional license key for delivering logs to New Relic | ||
# See https://github.com/newrelic/logstash-output-plugin | ||
# logstash_newrelic_license_key: | ||
# logstash_newrelic_log_uri: https://gov-log-api.newrelic.com/log/v1 |
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
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