Skip to content

Commit

Permalink
Clean up the build tokens and use the OSS build runner. (#11451)
Browse files Browse the repository at this point in the history
Similar to airbytehq/airbyte-platform-internal#1271.

Remove the octavia build token. Use the OSS build token.

After this change:
- Make it so the connector_base, frontend_build and platform_build are on airbyteio pat.
- The rest of the builds are on the oss build runner pat.
- Davin's tokens are used for the slash command builds.
- Octavia token is only used for administrative stuff.
  • Loading branch information
davinchia authored Mar 28, 2022
1 parent a305e49 commit 931694d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ jobs:
with:
aws-access-key-id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
github-token: ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN_1 }}
github-token: ${{ secrets.AIRBYTEIO_PAT }}
frontend-build:
name: "Frontend: Build"
needs: start-frontend-runner
Expand Down Expand Up @@ -396,7 +396,7 @@ jobs:
uses: supertopher/ec2-github-runner@v15.0.4
with:
mode: stop
github-token: ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN_1 }}
github-token: ${{ secrets.AIRBYTEIO_PAT }}
label: ${{ needs.start-frontend-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-frontend-runner.outputs.ec2-instance-id }}

Expand Down Expand Up @@ -562,7 +562,7 @@ jobs:
with:
aws-access-key-id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
github-token: ${{ secrets.AIRBYTEIO_PAT }}
github-token: ${{ secrets.OSS_BUILD_RUNNER_GITHUB_PAT }}
platform-new-scheduler-acceptance:
# In case of self-hosted EC2 errors, remove the next two lines and uncomment the currently commented out `runs-on` line.
needs: start-platform-new-scheduler-acceptance-runner # required to start the main job when the runner is ready
Expand Down Expand Up @@ -661,7 +661,7 @@ jobs:
uses: supertopher/ec2-github-runner@v15.0.4
with:
mode: stop
github-token: ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN_1 }}
github-token: ${{ secrets.OSS_BUILD_RUNNER_GITHUB_PAT }}
label: ${{ needs.start-platform-new-scheduler-acceptance-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-platform-new-scheduler-acceptance-runner.outputs.ec2-instance-id }}

Expand Down Expand Up @@ -689,7 +689,7 @@ jobs:
ec2-image-id: ami-0c1a9bc22624339d8
aws-access-key-id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
github-token: ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN_1 }}
github-token: ${{ secrets.OSS_BUILD_RUNNER_GITHUB_PAT }}
kube-acceptance-test:
name: "Platform: Acceptance Tests (Kube)"
# In case of self-hosted EC2 errors, removed the `needs` line and switch back to running on ubuntu-latest.
Expand Down Expand Up @@ -827,7 +827,7 @@ jobs:
uses: supertopher/ec2-github-runner@v15.0.4
with:
mode: stop
github-token: ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN_1 }}
github-token: ${{ secrets.OSS_BUILD_RUNNER_GITHUB_PAT }}
label: ${{ needs.start-kube-acceptance-test-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-kube-acceptance-test-runner.outputs.ec2-instance-id }}

Expand Down Expand Up @@ -855,7 +855,7 @@ jobs:
ec2-image-id: ami-0c1a9bc22624339d8
aws-access-key-id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
github-token: ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN_1 }}
github-token: ${{ secrets.OSS_BUILD_RUNNER_GITHUB_PAT }}
kube-acceptance-test-v2:
name: "Platform: Acceptance Tests (Kube v2)"
# In case of self-hosted EC2 errors, removed the `needs` line and switch back to running on ubuntu-latest.
Expand Down Expand Up @@ -960,6 +960,6 @@ jobs:
uses: supertopher/ec2-github-runner@v15.0.4
with:
mode: stop
github-token: ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN_1 }}
github-token: ${{ secrets.OSS_BUILD_RUNNER_GITHUB_PAT }}
label: ${{ needs.start-kube-acceptance-test-runner-v2.outputs.label }}
ec2-instance-id: ${{ needs.start-kube-acceptance-test-runner-v2.outputs.ec2-instance-id }}

0 comments on commit 931694d

Please sign in to comment.