From 9c857922953dba026ee4a62f73aae04f962e6792 Mon Sep 17 00:00:00 2001 From: Artem Zverev Date: Sun, 10 Mar 2024 17:04:50 +0100 Subject: [PATCH] [#475]: deploy to swarm action update --- .github/actions/deploy-to-s3/action.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/actions/deploy-to-s3/action.yml b/.github/actions/deploy-to-s3/action.yml index 2d1d20f3..cd6fd83a 100644 --- a/.github/actions/deploy-to-s3/action.yml +++ b/.github/actions/deploy-to-s3/action.yml @@ -19,17 +19,26 @@ inputs: AWS_REGION: required: false description: 'AWS region' - default: 'eu-north-1' + default: 'ru-central1' runs: using: "composite" steps: - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1-node16 - with: - aws-access-key-id: ${{ inputs.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ inputs.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ inputs.AWS_REGION }} + - name: Configure AWS + shell: 'bash' + run: | + mkdir .aws + cat << 'EOF' > .aws/credentials + [default] + aws_access_key_id = ${{ inputs.AWS_ACCESS_KEY_ID }} + aws_secret_access_key = ${{ inputs.AWS_SECRET_ACCESS_KEY }} + endpoint_url = https://storage.yandexcloud.net + EOF + + cat << 'EOF' > .aws/config + [default] + region = ${{ inputs.AWS_REGION }} + EOF - name: Upload frontend build to s3 shell: 'bash'