Skip to content

Commit

Permalink
Use s3cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
d3vil-st committed Sep 12, 2024
1 parent 7eb5493 commit 4f84424
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -49,6 +50,13 @@ jobs:
with:
terraform_version: "v1.10.0-alpha20240911"

- name: Set up S3cmd cli tool
uses: s3-actions/[email protected]
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
Expand All @@ -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()

0 comments on commit 4f84424

Please sign in to comment.