Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve pipeline #367

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ target/
target-android/
.bsp
*.iml
*~
106 changes: 59 additions & 47 deletions concourse/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,60 +27,72 @@ resources:
private_key: ((github_repo_key))

jobs:
- name: set-self
serial: true
plan:
- get: fauna-jvm-repository
trigger: true
- get: fauna-jvm-repository-docs
trigger: true
- set_pipeline: self
file: fauna-jvm-repository/concourse/pipeline.yml
- name: release
serial: true
public: false
plan:
- get: fauna-jvm-repository
passed: [set-self]
- get: fauna-jvm-repository-docs
passed: [set-self]

- task: integration-tests-oracle-jdk11-scala-2-11
file: fauna-jvm-repository/concourse/tasks/integration-tests-oracle-jdk11-scala-2-11.yml
privileged: true
vars:
aws_access_key_id: ((concourse_aws_access_key_id))
aws_secret_access_key: ((concourse_aws_access_key_secret))
params:
FAUNA_ROOT_KEY: ((fauna.secret))
FAUNA_DOMAIN: ((fauna.domain))
FAUNA_SCHEME: ((fauna.scheme))
FAUNA_PORT: ((fauna.port))
AWS_ACCESS_KEY_ID: ((concourse_aws_access_key_id))
AWS_SECRET_ACCESS_KEY: ((concourse_aws_access_key_secret))
AWS_DEFAULT_REGION: us-east-2

- task: integration-tests-oracle-jdk11-scala-2-12
file: fauna-jvm-repository/concourse/tasks/integration-tests-oracle-jdk11-scala-2-12.yml
privileged: true
vars:
aws_access_key_id: ((concourse_aws_access_key_id))
aws_secret_access_key: ((concourse_aws_access_key_secret))
params:
FAUNA_ROOT_KEY: ((fauna.secret))
FAUNA_DOMAIN: ((fauna.domain))
FAUNA_SCHEME: ((fauna.scheme))
FAUNA_PORT: ((fauna.port))
AWS_ACCESS_KEY_ID: ((concourse_aws_access_key_id))
AWS_SECRET_ACCESS_KEY: ((concourse_aws_access_key_secret))
AWS_DEFAULT_REGION: us-east-2

- task: integration-tests-openjdk11-scala-2-11
file: fauna-jvm-repository/concourse/tasks/integration-tests-jdk11-scala-2-11.yml
privileged: true
params:
FAUNA_ROOT_KEY: ((fauna.secret))
FAUNA_DOMAIN: ((fauna.domain))
FAUNA_SCHEME: ((fauna.scheme))
FAUNA_PORT: ((fauna.port))

- task: integration-tests-openjdk11-scala-2-12
file: fauna-jvm-repository/concourse/tasks/integration-tests-jdk11-scala-2-12.yml
privileged: true
params:
FAUNA_ROOT_KEY: ((fauna.secret))
FAUNA_DOMAIN: ((fauna.domain))
FAUNA_SCHEME: ((fauna.scheme))
FAUNA_PORT: ((fauna.port))
- in_parallel:
- task: integration-tests-oracle-jdk11-scala-2-11
file: fauna-jvm-repository/concourse/tasks/integration-tests-oracle-jdk11-scala-2-11.yml
privileged: true
vars:
aws_access_key_id: ((concourse_aws_access_key_id))
aws_secret_access_key: ((concourse_aws_access_key_secret))
params:
FAUNA_ROOT_KEY: ((fauna.secret))
FAUNA_DOMAIN: ((fauna.domain))
FAUNA_SCHEME: ((fauna.scheme))
FAUNA_PORT: ((fauna.port))
AWS_ACCESS_KEY_ID: ((concourse_aws_access_key_id))
AWS_SECRET_ACCESS_KEY: ((concourse_aws_access_key_secret))
AWS_DEFAULT_REGION: us-east-2

- task: integration-tests-oracle-jdk11-scala-2-12
file: fauna-jvm-repository/concourse/tasks/integration-tests-oracle-jdk11-scala-2-12.yml
privileged: true
vars:
aws_access_key_id: ((concourse_aws_access_key_id))
aws_secret_access_key: ((concourse_aws_access_key_secret))
params:
FAUNA_ROOT_KEY: ((fauna.secret))
FAUNA_DOMAIN: ((fauna.domain))
FAUNA_SCHEME: ((fauna.scheme))
FAUNA_PORT: ((fauna.port))
AWS_ACCESS_KEY_ID: ((concourse_aws_access_key_id))
AWS_SECRET_ACCESS_KEY: ((concourse_aws_access_key_secret))
AWS_DEFAULT_REGION: us-east-2

- task: integration-tests-openjdk11-scala-2-11
file: fauna-jvm-repository/concourse/tasks/integration-tests-jdk11-scala-2-11.yml
privileged: true
params:
FAUNA_ROOT_KEY: ((fauna.secret))
FAUNA_DOMAIN: ((fauna.domain))
FAUNA_SCHEME: ((fauna.scheme))
FAUNA_PORT: ((fauna.port))

- task: integration-tests-openjdk11-scala-2-12
file: fauna-jvm-repository/concourse/tasks/integration-tests-jdk11-scala-2-12.yml
privileged: true
params:
FAUNA_ROOT_KEY: ((fauna.secret))
FAUNA_DOMAIN: ((fauna.domain))
FAUNA_SCHEME: ((fauna.scheme))
FAUNA_PORT: ((fauna.port))

- task: publish
file: fauna-jvm-repository/concourse/tasks/publish.yml
Expand Down
12 changes: 12 additions & 0 deletions concourse/update-pipeline.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# update the concourse pipeline with this script.

fly_status=`fly status -t devex`
if [ "$fly_status" == "logged in successfully" ]
then
echo $fly_status
else
fly login -t devex -n devex -c https://concourse.faunadb.net/
fi

fly -t devex set-pipeline -p jvm-driver-release-v4 -c concourse/pipeline.yml