From 6f0b69f917250bd8f5b1bab581f64650fbe35b27 Mon Sep 17 00:00:00 2001 From: Andrei Pavlov Date: Mon, 18 Nov 2024 22:38:15 +0700 Subject: [PATCH] Set region and use gh action to configure creds Signed-off-by: Andrei Pavlov --- .github/workflows/release.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 34e9d0ecc..76f96aaf8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,10 +65,12 @@ jobs: run: | make airgap-package + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-region: us-east-1 + aws-access-key-id: ${{ secrets.ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.SECRET_ACCESS_KEY }} + - name: Upload airgap bundle - env: - AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }} - AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }} - run: | - make awscli - ./bin/aws s3 cp bin/hmc-airgap-${{ env.VERSION }}.tgz s3://binary2a-mirantis-com.s3.amazonaws.com/hmc-airgap-${{ env.VERSION }}.tgz + run: aws s3 cp bin/hmc-airgap-${{ env.VERSION }}.tgz s3://binary2a-mirantis-com.s3.amazonaws.com/hmc-airgap-${{ env.VERSION }}.tgz