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

#2157 - Updated Github Action runs-on #2158

Merged
merged 2 commits into from
Dec 4, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:

jobs:
prepare-deployment:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -34,7 +34,7 @@ jobs:
needs: prepare-deployment
environment:
name: perf-deploy
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: Pause for manual approval
run: |
Expand All @@ -53,7 +53,7 @@ jobs:

build-push-artifacts:
needs: create-and-post-tag
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -80,7 +80,7 @@ jobs:
needs: deploy-to-perf
environment:
name: staging-deploy
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: Pause for manual approval
run: echo "Deployment paused for manual approval to staging and production."
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-and-post-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
create-and-post-tag:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
outputs:
previousVersion: ${{ steps.create_tag.outputs.previousVersion }}
newVersion: ${{ steps.create_tag.outputs.newVersion }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
create-release-notes:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
outputs:
draftReleaseReference: ${{ steps.create_notes.outputs.draftReleaseReference }}
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/db-downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
default: container_tag
jobs:
run-downgrade:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-ticket-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
create_issue:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ env:
jobs:
setup-environment:
name: 'setup-env'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -70,7 +70,7 @@ jobs:

upload-env-file:
needs: [setup-environment]
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_lambda_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:

jobs:
setup_job:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
run-migrations:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
bash ./scripts/run_ci_migrations.sh -c ${{ inputs.environment }}-notification-cluster -e ${{ inputs.environment }} -t ${{ steps.register.outputs.arn }}

deploy-api:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
needs: [run-migrations]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
wait-for-service-stability: true

deploy-celery:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
needs: [run-migrations]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
wait-for-service-stability: true

deploy-celery-beat:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
needs: [run-migrations]
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
make test
code-scan:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -75,7 +75,7 @@ jobs:
- run: make check-vulnerabilities

dependency-scan:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on:
jobs:
setup-environment:
name: "setup-env-${{ inputs.environment }}"
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
outputs:
git-hash: ${{ steps.set-hash.outputs.commit-hash }}
steps:
Expand All @@ -61,7 +61,7 @@ jobs:
build-push-artifacts:
needs: [setup-environment]
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lambda-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
jobs:
# All of the lambda functions use layers for dependencies, if any. Bundling dependencies should not be necessary.
build-and-deploy-lambda-functions:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
defaults:
run:
working-directory: "./lambda_functions"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/load-test-email-delivery-time.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ on:

jobs:
trigger:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/load-test-sms-response-time.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ on:

jobs:
trigger:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-label-semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
check-pr-sem:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
contents: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-tag-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
pre-tag-summary:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
contents: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
type: string
jobs:
publish-release-notes:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
contents: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
jobs:
trigger-regression-tests:
name: "Run regression for ${{ inputs.environment }}"
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/twistlock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
twistlock-scan:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-datadog-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
update-image:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
env:
IMAGE_REPOSITORY: "datadog/agent"
IMAGE_TAG: ${{ github.event.inputs.version_tag }} # Use the provided version tag for the image
Expand Down
Loading