-
Notifications
You must be signed in to change notification settings - Fork 19
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
28 changed files
with
1,009 additions
and
121 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,36 @@ | ||
name: Set JIRA ticket to DONE | ||
|
||
on: | ||
issues: | ||
types: [closed, deleted] | ||
|
||
jobs: | ||
set_done_for_closed_issued: | ||
name: Set JIRA ticket to DONE | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login | ||
uses: atlassian/gajira-login@master | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
|
||
- name: Find comment with ticket number | ||
uses: peter-evans/find-comment@v1 | ||
id: comment | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body-includes: Internal ticket number is FE- | ||
|
||
- name: Get ticket number | ||
id: ticket | ||
uses: atlassian/gajira-find-issue-key@master | ||
with: | ||
string: ${{ steps.comment.outputs.comment-body }} | ||
|
||
- name: Close | ||
uses: atlassian/gajira-transition@master | ||
with: | ||
issue: ${{ steps.ticket.outputs.issue }} | ||
transition: 'DONE' |
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,37 @@ | ||
name: Create JIRA ticket for GH issue | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
create_ticket_from_issue: | ||
name: Create JIRA ticket | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login | ||
uses: atlassian/gajira-login@master | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
|
||
- name: Create | ||
id: create | ||
uses: atlassian/gajira-create@master | ||
with: | ||
project: FE | ||
issuetype: Bug | ||
summary: Issue ${{ github.event.issue.number }} ${{ github.event.issue.title }} | ||
description: ${{ github.event.issue.html_url }} | ||
fields: '{"labels": ["github", "issue", "dx-ops"], "components": [{ "name": "Fauna Shell" }]}' | ||
|
||
- name: Comment | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: Internal ticket number is ${{ steps.create.outputs.issue }} | ||
|
||
- name: Complete | ||
if: ${{ steps.create.outputs.issue }} | ||
run: echo "Issue ${{ steps.create.outputs.issue }} was created" |
31 changes: 31 additions & 0 deletions
31
.github/workflows/create-jira-ticket-from-pull-request.yml
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,31 @@ | ||
name: Create JIRA ticket for GH pull request | ||
|
||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
jobs: | ||
create_ticket_from_pr: | ||
name: Create JIRA ticket | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login | ||
uses: atlassian/gajira-login@master | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
|
||
- name: Create | ||
id: create | ||
uses: atlassian/gajira-create@master | ||
with: | ||
project: FE | ||
issuetype: Task | ||
summary: Pull Request ${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }} | ||
description: ${{ github.event.pull_request.html_url }} | ||
fields: '{"labels": ["github", "pr", "dx-ops"], "components": [{ "name": "Fauna Shell" }]}' | ||
|
||
- name: Complete | ||
if: ${{ steps.create.outputs.issue }} | ||
run: echo "Issue ${{ steps.create.outputs.issue }} was created" |
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,31 @@ | ||
--- | ||
platform: linux | ||
image_resource: | ||
type: registry-image | ||
source: | ||
repository: shared-concourse-dind | ||
aws_access_key_id: ((prod-images-aws-access-key-id)) | ||
aws_secret_access_key: ((prod-images-aws-secret-key)) | ||
aws_region: us-east-2 | ||
|
||
params: | ||
FAUNA_ROOT_KEY: | ||
FAUNA_DOMAIN: | ||
FAUNA_SCHEME: | ||
FAUNA_PORT: | ||
|
||
inputs: | ||
- name: fauna-jvm-repository | ||
|
||
run: | ||
path: entrypoint.sh | ||
args: | ||
- bash | ||
- -ceu | ||
- | | ||
# start containers | ||
docker-compose -f fauna-jvm-repository/concourse/tasks/integration.yml run tests-jdk-11-scala-2.12 | ||
# stop and remove containers | ||
docker-compose -f fauna-jvm-repository/concourse/tasks/integration.yml down | ||
# remove volumes | ||
docker volume rm $(docker volume ls -q) |
39 changes: 39 additions & 0 deletions
39
concourse/tasks/integration-tests-oracle-jdk11-scala-2-11.yml
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,39 @@ | ||
--- | ||
platform: linux | ||
image_resource: | ||
type: registry-image | ||
source: | ||
repository: shared-concourse-dind | ||
aws_access_key_id: ((prod-images-aws-access-key-id)) | ||
aws_secret_access_key: ((prod-images-aws-secret-key)) | ||
aws_region: us-east-2 | ||
|
||
params: | ||
FAUNA_ROOT_KEY: | ||
FAUNA_DOMAIN: | ||
FAUNA_SCHEME: | ||
FAUNA_PORT: | ||
AWS_ACCESS_KEY_ID: | ||
AWS_SECRET_ACCESS_KEY: | ||
AWS_DEFAULT_REGION: | ||
|
||
inputs: | ||
- name: fauna-jvm-repository | ||
|
||
run: | ||
path: entrypoint.sh | ||
args: | ||
- bash | ||
- -ceu | ||
- | | ||
apk add --no-cache python3 py3-pip && \ | ||
pip3 install --upgrade pip && \ | ||
pip3 install awscli \ | ||
&& rm -rf /var/cache/apk/* \ | ||
&& aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 768923903788.dkr.ecr.us-east-2.amazonaws.com | ||
# start containers | ||
docker-compose -f fauna-jvm-repository/concourse/tasks/integration.yml run tests-oracle-jdk-11-scala-2.11 | ||
# stop and remove containers | ||
docker-compose -f fauna-jvm-repository/concourse/tasks/integration.yml down | ||
# remove volumes | ||
docker volume rm $(docker volume ls -q) |
39 changes: 39 additions & 0 deletions
39
concourse/tasks/integration-tests-oracle-jdk11-scala-2-12.yml
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,39 @@ | ||
--- | ||
platform: linux | ||
image_resource: | ||
type: registry-image | ||
source: | ||
repository: shared-concourse-dind | ||
aws_access_key_id: ((prod-images-aws-access-key-id)) | ||
aws_secret_access_key: ((prod-images-aws-secret-key)) | ||
aws_region: us-east-2 | ||
|
||
params: | ||
FAUNA_ROOT_KEY: | ||
FAUNA_DOMAIN: | ||
FAUNA_SCHEME: | ||
FAUNA_PORT: | ||
AWS_ACCESS_KEY_ID: | ||
AWS_SECRET_ACCESS_KEY: | ||
AWS_DEFAULT_REGION: | ||
|
||
inputs: | ||
- name: fauna-jvm-repository | ||
|
||
run: | ||
path: entrypoint.sh | ||
args: | ||
- bash | ||
- -ceu | ||
- | | ||
apk add --no-cache python3 py3-pip && \ | ||
pip3 install --upgrade pip && \ | ||
pip3 install awscli \ | ||
&& rm -rf /var/cache/apk/* \ | ||
&& aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 768923903788.dkr.ecr.us-east-2.amazonaws.com | ||
# start containers | ||
docker-compose -f fauna-jvm-repository/concourse/tasks/integration.yml run tests-oracle-jdk-11-scala-2.12 | ||
# stop and remove containers | ||
docker-compose -f fauna-jvm-repository/concourse/tasks/integration.yml down | ||
# remove volumes | ||
docker volume rm $(docker volume ls -q) |
Oops, something went wrong.