-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.47 KB
/
deploy.yml
File metadata and controls
56 lines (49 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
deployments: write
environment:
name: production
url: https://images.csssr.com
steps:
- name: Download CSSSR actions
uses: actions/checkout@v2
with:
repository: CSSSR/actions
ssh-key: ${{ secrets.DOWNLOAD_ACTIONS_SSH_KEY }}
path: actions
- uses: actions/checkout@v4
with:
path: csssr_images
- name: Install dependencies
working-directory: csssr_images
run: yarn install --frozen-lockfile
- name: Build
working-directory: csssr_images
run: yarn run build-example
env:
HOST: http://master.csssr-images.csssr.cloud
IMGPROXY_HOST: https://images.csssr.com
- name: Import secrets
id: secrets
uses: ./actions/get-aws-s3-upload-creds/v1beta1
with:
VAULT_JWT_KEY: ${{secrets.VAULT_JWT_KEY}}
- name: Deploy
uses: ./actions/deploy-static-site/v1beta1
with:
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'