Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
deploy:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
environment:
name: production
url: https://images.csssr.com
Expand Down Expand Up @@ -35,12 +38,26 @@ jobs:
HOST: http://master.csssr-images.csssr.cloud
IMGPROXY_HOST: https://images.csssr.com

- name: Import secrets
id: secrets
uses: hashicorp/[email protected]
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 ;

- name: Deploy
uses: ./actions/deploy-static-site/v1beta1
with:
auth: ${{ secrets.CDN_UPLOAD_SECRET }}
auth: 'aws:${{steps.secrets.outputs.AWS_ACCESS_KEY_ID}}:${{steps.secrets.outputs.AWS_SECRET_ACCESS_KEY}}:${{steps.secrets.outputs.AWS_SESSION_TOKEN}}'
token: ${{ secrets.GITHUB_TOKEN }}
site-type: mpa
project-id: csssr-images
files: ./csssr_images/example
no-previous-files: "true"
no-previous-files: 'true'
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5351,9 +5351,9 @@ write-file-atomic@^3.0.0:
typedarray-to-buffer "^3.1.5"

ws@^7.4.4:
version "7.4.4"
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.4.tgz#383bc9742cb202292c9077ceab6f6047b17f2d59"
integrity sha512-Qm8k8ojNQIMx7S+Zp8u/uHOx7Qazv3Yv4q68MiWWWOJhiwG5W3x7iqmRtJo8xxrciZUY4vRxUTJCKuRnF28ZZw==
version "7.5.9"
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591"
integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==

xml-name-validator@^3.0.0:
version "3.0.0"
Expand Down