Skip to content

Commit

Permalink
Improve pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
cleve-fauna committed Oct 26, 2023
1 parent 2513011 commit 74ea1dc
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 47 deletions.
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
*~
104 changes: 57 additions & 47 deletions concourse/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,60 +27,70 @@ resources:
private_key: ((github_repo_key))

jobs:
- name: set-self
serial: true
plan:
- get: fauna-jvm-repository
- get: fauna-jvm-repository-docs
- 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

0 comments on commit 74ea1dc

Please sign in to comment.