From 4f844245db64cb54a4a17ef5240771951d3ebbc4 Mon Sep 17 00:00:00 2001 From: Ilia Kargapolov Date: Thu, 12 Sep 2024 17:32:46 +0200 Subject: [PATCH] Use s3cmd --- .github/workflows/terraform.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 3d10669e..2fe214a8 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -29,6 +29,7 @@ jobs: TF_VAR_subnet_id: vpcsubnet-e00dgdntmhgkeej1z3 TF_VAR_loki_access_key_id: ${{ secrets.TF_VAR_LOKI_ACCESS_KEY_ID }} TF_VAR_loki_secret_key: ${{ secrets.TF_VAR_LOKI_SECRET_KEY }} + AWS_S3_ENDPOINT: https://storage.eu-north1.nebius.cloud:443 steps: # Checkout the repository to the GitHub Actions runner @@ -49,6 +50,13 @@ jobs: with: terraform_version: "v1.10.0-alpha20240911" + - name: Set up S3cmd cli tool + uses: s3-actions/s3cmd@v1.7.0 + with: + region: eu-north1 + access_key: ${{ secrets.TF_VAR_LOKI_ACCESS_KEY_ID }} + secret_key: ${{ secrets.TF_VAR_LOKI_SECRET_KEY }} + # Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc. - name: Terraform Init run: terraform init @@ -68,11 +76,5 @@ jobs: if: always() - name: Upload test results - uses: shallwefootball/s3-upload-action@master - with: - aws_key_id: ${{ secrets.TF_VAR_LOKI_ACCESS_KEY_ID }} - aws_secret_access_key: ${{ secrets.TF_VAR_LOKI_SECRET_KEY }} - aws_bucket: terraform-test-reports - endpoint: https://storage.eu-north1.nebius.cloud:443 - source_dir: "${{ matrix.solution.name }}/tests" + run: s3cmd sync --recursive ${{ matrix.solution.name }}/tests s3://terraform-test-reports/ if: always()