-
-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (45 loc) · 1.18 KB
/
webclient-cicd.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
name: Webclient CI/CD
on:
pull_request:
branches: [ main ]
types: [ opened, reopened, synchronize ]
push:
branches: [ main ]
workflow_dispatch:
jobs:
webclient-linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9.1.0
package_json_file: webclient/package.json
run_install: |
- cwd: webclient
args: [--frozen-lockfile, --strict-peer-dependencies]
- args: [--global, openapi-format]
- run: pnpm run lint
working-directory: webclient
- run: pnpm run type-check
working-directory: webclient
webclient-build:
uses: ./.github/workflows/_docker-build.yml
needs:
- webclient-linting
with:
image_suffix: webclient
context: ./webclient
dockerfile: Dockerfile
permissions:
contents: read
packages: write
webclient-deployment:
uses: ./.github/workflows/_restart-argocd.yml
if: ${{ github.ref }} == 'refs/heads/main'
needs:
- webclient-build
with:
deployment: webclient
secrets:
ARGOCD_TOKEN: ${{ secrets.ARGOCD_TOKEN }}