-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.23 KB
/
main_CD.yml
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
name: Deploy_To_Azure_Blobs_Prod
on:
release:
types: [published]
env:
STORAGE_ACCOUNT_NAME: savalidatorwebvueprod # sa<appname><environment>
STORAGE_ACCOUNT_KEY: ${{ secrets.PROD_STORAGE_KEY }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install dependencies
run: |
npm install
- name: Run build
run: |
npm run build:production
- name: Upload to blob storage
uses: azure/CLI@v2
with:
azcliversion: 2.34.0
inlineScript: |
az storage blob upload-batch \
--overwrite true \
--account-name ${{ env.STORAGE_ACCOUNT_NAME }} \
--account-key ${{ env.STORAGE_ACCOUNT_KEY }} \
-d '$web' \
-s dist/
integration-test:
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cypress CI Run
uses: cypress-io/github-action@v6
with:
wait-on: "https://validator.iatistandard.org"
config-file: cypress.config.prod.js