Skip to content

Commit

Permalink
change instance type for nightly (#1923)
Browse files Browse the repository at this point in the history
* change instance type for nightly
  • Loading branch information
gatsbyz committed Sep 21, 2023
1 parent 1b78d47 commit 226dd88
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/deploy.nightly.devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on: # yamllint disable-line rule:truthy
required: false
type: environment
duration:
default: '10m'
default: "10m"
description: Duration of the test
required: false
type: string
Expand All @@ -20,7 +20,7 @@ on: # yamllint disable-line rule:truthy
type: string
required: true
duration:
default: '10m'
default: "10m"
description: Duration of the test
required: false
type: string
Expand All @@ -40,6 +40,8 @@ on: # yamllint disable-line rule:truthy
required: true
TF_VAR_OWNER:
required: true
TF_VAR_BASE_INSTANCE_TYPE:
required: true
SLACK_PERFORMANCE_WEBHOOK_URL:
required: true
DD_API_KEY:
Expand Down Expand Up @@ -78,18 +80,13 @@ jobs:
id: validate
run: terraform validate -no-color
continue-on-error: true
- name: Terraform Plan
id: plan
run: terraform plan -out=tfplan -no-color
env:
TF_VAR_deployment_name: ${{ secrets.TF_VAR_DEPLOYMENT_NAME }}
TF_VAR_owner: ${{ secrets.TF_VAR_OWNER }}
- name: Terraform Apply
id: apply
run: terraform apply -auto-approve tfplan
run: terraform apply -auto-approve
env:
TF_VAR_deployment_name: ${{ secrets.TF_VAR_DEPLOYMENT_NAME }}
TF_VAR_owner: ${{ secrets.TF_VAR_OWNER }}
TF_VAR_base_instance_type: ${{ secrets.TF_VAR_BASE_INSTANCE_TYPE }}
- name: Retrieve state file from s3
run: aws s3 cp s3://polygon-edge-devnet-terraform-states/state/${{ secrets.TF_VAR_DEPLOYMENT_NAME }} state.json
- name: Configure private keys
Expand Down Expand Up @@ -288,3 +285,4 @@ jobs:
env:
TF_VAR_deployment_name: ${{ secrets.TF_VAR_DEPLOYMENT_NAME }}
TF_VAR_owner: ${{ secrets.TF_VAR_OWNER }}
TF_VAR_base_instance_type: ${{ secrets.TF_VAR_BASE_INSTANCE_TYPE }}
9 changes: 1 addition & 8 deletions .github/workflows/manual.deploy.nightly.devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ on: # yamllint disable-line rule:truthy
branches:
- jesse/fix-*
workflow_call: {}
workflow_dispatch:
inputs:
duration:
default: '10m'
description: Duration of the test
required: false
type: string

permissions:
id-token: write
Expand All @@ -29,10 +22,10 @@ jobs:
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
TF_VAR_DEPLOYMENT_NAME: ${{ secrets.TF_VAR_DEPLOYMENT_NAME }}
TF_VAR_OWNER: ${{ secrets.TF_VAR_OWNER }}
TF_VAR_BASE_INSTANCE_TYPE: ${{ secrets.TF_VAR_BASE_INSTANCE_TYPE }}
SLACK_PERFORMANCE_WEBHOOK_URL: ${{ secrets.SLACK_PERFORMANCE_WEBHOOK_URL }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
LOADTEST_MNEMONIC: ${{ secrets.LOADTEST_MNEMONIC }}
VAULT_PASSWORD_FILE: ${{ secrets.VAULT_PASSWORD_FILE }}
with:
environment: devnet
duration: ${{ inputs.duration }}
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
TF_VAR_DEPLOYMENT_NAME: ${{ secrets.TF_VAR_DEPLOYMENT_NAME }}
TF_VAR_OWNER: ${{ secrets.TF_VAR_OWNER }}
TF_VAR_BASE_INSTANCE_TYPE: ${{ secrets.TF_VAR_BASE_INSTANCE_TYPE }}
SLACK_PERFORMANCE_WEBHOOK_URL: ${{ secrets.SLACK_PERFORMANCE_WEBHOOK_URL }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
LOADTEST_MNEMONIC: ${{ secrets.LOADTEST_MNEMONIC }}
Expand Down

0 comments on commit 226dd88

Please sign in to comment.