-
Notifications
You must be signed in to change notification settings - Fork 16
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
118 changed files
with
2,315 additions
and
4,523 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,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
project=$1 | ||
tag=$2 | ||
|
||
export RDB_LOADER_VERSION=${tag##*/} | ||
|
||
./.github/is_release_tag.sh $project $tag | ||
|
||
echo "Launching release manager for $project" | ||
|
||
release-manager \ | ||
--config "./.github/release_${project}.yml" \ | ||
--check-version \ | ||
--make-version \ | ||
--make-artifact \ | ||
--upload-artifact |
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 +1,27 @@ | ||
#!/bin/bash | ||
|
||
REFS_TAGS="refs/tags/" | ||
|
||
project=$1 | ||
tag=$2 | ||
|
||
refs_tags_len=${#REFS_TAGS} | ||
|
||
slashed="${project}/" | ||
slashed_len=${#slashed} | ||
|
||
cicd=${tag:0:${slashed_len}} | ||
cicd=${tag:$refs_tags_len:${slashed_len}} | ||
release=${tag:${slashed_len}} | ||
|
||
echo "Comparing project name from git tag ${cicd} (from ${tag}) and specified ${slashed}" | ||
|
||
if [ "${cicd}" == "${slashed}" ]; then | ||
if [ "${release}" == "" ]; then | ||
echo "Warning! No release specified! Ignoring." | ||
exit 2 | ||
fi | ||
exit 0 | ||
else | ||
echo "${cicd} is not equal to ${slashed}" | ||
exit 1 | ||
fi |
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
File renamed without changes.
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,26 @@ | ||
name: Deploy Loader | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
deploy: | ||
if: startsWith(github.ref, 'refs/tags/rdb_loader') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '2.x' | ||
- uses: BSFishy/pip-action@v1 | ||
with: | ||
packages: | | ||
release-manager | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build and publish Loader | ||
run: .github/deploy.sh rdb_loader $GITHUB_REF | ||
env: | ||
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} | ||
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_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,26 @@ | ||
name: Deploy Shredder | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
deploy: | ||
if: startsWith(github.ref, 'refs/tags/rdb_shredder') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '2.x' | ||
- uses: BSFishy/pip-action@v1 | ||
with: | ||
packages: | | ||
release-manager | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build and publish Shredder | ||
run: .github/deploy.sh rdb_shredder $GITHUB_REF | ||
env: | ||
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} | ||
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_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,22 @@ | ||
name: Snyk | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
create: | ||
tags: [ rdb* ] | ||
|
||
jobs: | ||
security: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run Snyk to check for vulnerabilities | ||
uses: snyk/actions/scala@master | ||
with: | ||
command: monitor | ||
args: --project-name=snowplow-rdb-loader | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_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,24 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Run tests | ||
run: sbt coverage test coverageReport | ||
- name: Aggregate coverage data | ||
if: ${{ always() }} | ||
run: sbt coverageAggregate | ||
- name: Submit coveralls data | ||
if: ${{ always() }} | ||
run: sbt coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_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,2 @@ | ||
updates.includeScala = true | ||
commits.message = "Bump ${artifactName} from ${currentVersion} to ${nextVersion}" |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.