From bea32bcf4fce77a320132f69a2f83d6d42fed3c7 Mon Sep 17 00:00:00 2001 From: Vadim Aleksandrov Date: Thu, 1 Feb 2024 16:56:35 +0300 Subject: [PATCH] Update build-storybook.yaml --- .github/workflows/build-storybook.yaml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-storybook.yaml b/.github/workflows/build-storybook.yaml index fe0d5ed..9edf793 100644 --- a/.github/workflows/build-storybook.yaml +++ b/.github/workflows/build-storybook.yaml @@ -16,7 +16,7 @@ jobs: - uses: docker://quay.csssr.cloud/csssr/kuberta-init-workflow:v1 - name: Download CSSSR actions - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: CSSSR/actions ssh-key: ${{ secrets.DOWNLOAD_ACTIONS_SSH_KEY }} @@ -24,17 +24,9 @@ jobs: - name: Import secrets id: secrets - uses: hashicorp/vault-action@v2.4.0 + uses: ./actions/get-aws-s3-upload-creds/v1beta1 with: - url: https://vault.csssr.com:8200 - jwtGithubAudience: ${{secrets.VAULT_JWT_KEY}} - role: s3-cdn-upload - method: jwt - exportEnv: false - secrets: | - aws/sts/s3-cdn-upload access_key | AWS_ACCESS_KEY_ID ; - aws/sts/s3-cdn-upload secret_key | AWS_SECRET_ACCESS_KEY ; - aws/sts/s3-cdn-upload security_token | AWS_SESSION_TOKEN + VAULT_JWT_KEY: ${{secrets.VAULT_JWT_KEY}} - name: Build and push storybook uses: ./actions/build-and-deploy-static-site/v1beta1