|
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
PACKAGE_FILE: ${{ steps.package_file.outputs.PACKAGE_FILE }}
|
|
|
|
|
|
steps:
|
|
|
- - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
|
+ - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
|
with:
|
|
|
fetch-depth: 0
|
|
|
ref: ${{ github.event.inputs.ref }}
|
|
|
@@ -52,7 +52,7 @@ jobs:
|
|
|
id: package_file
|
|
|
run: |
|
|
|
echo "PACKAGE_FILE=$(find _packages/emqx -name 'emqx-*.deb' | head -n 1 | xargs basename)" >> $GITHUB_OUTPUT
|
|
|
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
|
|
+ - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
|
with:
|
|
|
name: emqx-ubuntu20.04
|
|
|
path: _packages/emqx/${{ steps.package_file.outputs.PACKAGE_FILE }}
|
|
|
@@ -72,17 +72,17 @@ jobs:
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PERF_TEST }}
|
|
|
aws-region: eu-west-1
|
|
|
- name: Checkout tf-emqx-performance-test
|
|
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
|
+ uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
|
with:
|
|
|
repository: emqx/tf-emqx-performance-test
|
|
|
path: tf-emqx-performance-test
|
|
|
ref: v0.2.3
|
|
|
- - uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
|
|
+ - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
|
|
with:
|
|
|
name: emqx-ubuntu20.04
|
|
|
path: tf-emqx-performance-test/
|
|
|
- name: Setup Terraform
|
|
|
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
|
|
|
+ uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
|
|
|
with:
|
|
|
terraform_wrapper: false
|
|
|
- name: run scenario
|
|
|
@@ -105,7 +105,7 @@ jobs:
|
|
|
terraform destroy -auto-approve
|
|
|
aws s3 sync --exclude '*' --include '*.tar.gz' s3://$TF_VAR_s3_bucket_name/$TF_VAR_bench_id .
|
|
|
- name: Send notification to Slack
|
|
|
- uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
|
|
|
+ uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
|
|
|
with:
|
|
|
payload-file-path: "./tf-emqx-performance-test/slack-payload.json"
|
|
|
- name: terraform destroy
|
|
|
@@ -113,13 +113,13 @@ jobs:
|
|
|
working-directory: ./tf-emqx-performance-test
|
|
|
run: |
|
|
|
terraform destroy -auto-approve
|
|
|
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
|
|
+ - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
|
if: success()
|
|
|
with:
|
|
|
name: metrics
|
|
|
path: |
|
|
|
"./tf-emqx-performance-test/*.tar.gz"
|
|
|
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
|
|
+ - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
|
if: failure()
|
|
|
with:
|
|
|
name: terraform
|
|
|
@@ -143,17 +143,17 @@ jobs:
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PERF_TEST }}
|
|
|
aws-region: eu-west-1
|
|
|
- name: Checkout tf-emqx-performance-test
|
|
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
|
+ uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
|
with:
|
|
|
repository: emqx/tf-emqx-performance-test
|
|
|
path: tf-emqx-performance-test
|
|
|
ref: v0.2.3
|
|
|
- - uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
|
|
+ - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
|
|
with:
|
|
|
name: emqx-ubuntu20.04
|
|
|
path: tf-emqx-performance-test/
|
|
|
- name: Setup Terraform
|
|
|
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
|
|
|
+ uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
|
|
|
with:
|
|
|
terraform_wrapper: false
|
|
|
- name: run scenario
|
|
|
@@ -176,7 +176,7 @@ jobs:
|
|
|
terraform destroy -auto-approve
|
|
|
aws s3 sync --exclude '*' --include '*.tar.gz' s3://$TF_VAR_s3_bucket_name/$TF_VAR_bench_id .
|
|
|
- name: Send notification to Slack
|
|
|
- uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
|
|
|
+ uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
|
|
|
with:
|
|
|
payload-file-path: "./tf-emqx-performance-test/slack-payload.json"
|
|
|
- name: terraform destroy
|
|
|
@@ -184,13 +184,13 @@ jobs:
|
|
|
working-directory: ./tf-emqx-performance-test
|
|
|
run: |
|
|
|
terraform destroy -auto-approve
|
|
|
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
|
|
+ - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
|
if: success()
|
|
|
with:
|
|
|
name: metrics
|
|
|
path: |
|
|
|
"./tf-emqx-performance-test/*.tar.gz"
|
|
|
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
|
|
+ - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
|
if: failure()
|
|
|
with:
|
|
|
name: terraform
|
|
|
@@ -215,17 +215,17 @@ jobs:
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PERF_TEST }}
|
|
|
aws-region: eu-west-1
|
|
|
- name: Checkout tf-emqx-performance-test
|
|
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
|
+ uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
|
with:
|
|
|
repository: emqx/tf-emqx-performance-test
|
|
|
path: tf-emqx-performance-test
|
|
|
ref: v0.2.3
|
|
|
- - uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
|
|
+ - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
|
|
with:
|
|
|
name: emqx-ubuntu20.04
|
|
|
path: tf-emqx-performance-test/
|
|
|
- name: Setup Terraform
|
|
|
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
|
|
|
+ uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
|
|
|
with:
|
|
|
terraform_wrapper: false
|
|
|
- name: run scenario
|
|
|
@@ -249,7 +249,7 @@ jobs:
|
|
|
terraform destroy -auto-approve
|
|
|
aws s3 sync --exclude '*' --include '*.tar.gz' s3://$TF_VAR_s3_bucket_name/$TF_VAR_bench_id .
|
|
|
- name: Send notification to Slack
|
|
|
- uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
|
|
|
+ uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
|
|
|
with:
|
|
|
payload-file-path: "./tf-emqx-performance-test/slack-payload.json"
|
|
|
- name: terraform destroy
|
|
|
@@ -257,13 +257,13 @@ jobs:
|
|
|
working-directory: ./tf-emqx-performance-test
|
|
|
run: |
|
|
|
terraform destroy -auto-approve
|
|
|
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
|
|
+ - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
|
if: success()
|
|
|
with:
|
|
|
name: metrics
|
|
|
path: |
|
|
|
"./tf-emqx-performance-test/*.tar.gz"
|
|
|
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
|
|
+ - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
|
if: failure()
|
|
|
with:
|
|
|
name: terraform
|
|
|
@@ -289,17 +289,17 @@ jobs:
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PERF_TEST }}
|
|
|
aws-region: eu-west-1
|
|
|
- name: Checkout tf-emqx-performance-test
|
|
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
|
+ uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
|
with:
|
|
|
repository: emqx/tf-emqx-performance-test
|
|
|
path: tf-emqx-performance-test
|
|
|
ref: v0.2.3
|
|
|
- - uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
|
|
+ - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
|
|
with:
|
|
|
name: emqx-ubuntu20.04
|
|
|
path: tf-emqx-performance-test/
|
|
|
- name: Setup Terraform
|
|
|
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
|
|
|
+ uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
|
|
|
with:
|
|
|
terraform_wrapper: false
|
|
|
- name: run scenario
|
|
|
@@ -322,7 +322,7 @@ jobs:
|
|
|
terraform destroy -auto-approve
|
|
|
aws s3 sync --exclude '*' --include '*.tar.gz' s3://$TF_VAR_s3_bucket_name/$TF_VAR_bench_id .
|
|
|
- name: Send notification to Slack
|
|
|
- uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
|
|
|
+ uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
|
|
|
with:
|
|
|
payload-file-path: "./tf-emqx-performance-test/slack-payload.json"
|
|
|
- name: terraform destroy
|
|
|
@@ -330,13 +330,13 @@ jobs:
|
|
|
working-directory: ./tf-emqx-performance-test
|
|
|
run: |
|
|
|
terraform destroy -auto-approve
|
|
|
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
|
|
+ - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
|
if: success()
|
|
|
with:
|
|
|
name: metrics
|
|
|
path: |
|
|
|
"./tf-emqx-performance-test/*.tar.gz"
|
|
|
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
|
|
+ - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
|
if: failure()
|
|
|
with:
|
|
|
name: terraform
|