Skip to content

Commit

Permalink
fix needs
Browse files Browse the repository at this point in the history
  • Loading branch information
cgardens committed Jul 14, 2021
1 parent a37707c commit 062f70a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
## Gradle Build (Connectors Base)
# In case of self-hosted EC2 errors, remove this block.
start-connectors-build-runner:
start-connectors-base-build-runner:
name: "Connectors Base: Start Build EC2 Runner"
runs-on: ubuntu-latest
outputs:
Expand All @@ -31,10 +31,10 @@ jobs:
ec2-instance-type: c5.2xlarge
subnet-id: subnet-0469a9e68a379c1d3
security-group-id: sg-0793f3c9413f21970
build-connector:
build-connectors-base:
# In case of self-hosted EC2 errors, removed the `needs` line and switch back to running on ubuntu-latest.
needs: start-connectors-build-runner # required to start the main job when the runner is ready
runs-on: ${{ needs.start-connectors-build-runner.outputs.label }} # run the job on the newly created runner
needs: start-connectors-base-build-runner # required to start the main job when the runner is ready
runs-on: ${{ needs.start-connectors-base-build-runner.outputs.label }} # run the job on the newly created runner
name: "Connectors Base: Build"
steps:
- name: Checkout Airbyte
Expand Down Expand Up @@ -122,11 +122,11 @@ jobs:
SLACK_TITLE: "Build Success"
SLACK_FOOTER: ""
# In case of self-hosted EC2 errors, remove this block.
stop-connectors-build-runner:
stop-connectors-base-build-runner:
name: "Connectors Base: Stop Build EC2 Runner"
needs:
- start-connectors-build-runner # required to get output from the start-runner job
- build # required to wait when the main job is done
- start-connectors-base-build-runner # required to get output from the start-runner job
- build-connectors-base # required to wait when the main job is done
runs-on: ubuntu-latest
if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs
steps:
Expand All @@ -141,8 +141,8 @@ jobs:
with:
mode: stop
github-token: ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN }}
label: ${{ needs.start-connectors-build-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-connectors-build-runner.outputs.ec2-instance-id }}
label: ${{ needs.start-connectors-base-build-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-connectors-base-build-runner.outputs.ec2-instance-id }}

## Gradle Build (Platform)
# In case of self-hosted EC2 errors, remove this block.
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
name: "Platform: Stop Build EC2 Runner"
needs:
- start-platform-build-runner # required to get output from the start-runner job
- build # required to wait when the main job is done
- platform-build # required to wait when the main job is done
runs-on: ubuntu-latest
if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs
steps:
Expand Down

0 comments on commit 062f70a

Please sign in to comment.