-
Notifications
You must be signed in to change notification settings - Fork 14
58 lines (55 loc) · 1.42 KB
/
ci-cd.yml
File metadata and controls
58 lines (55 loc) · 1.42 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
57
58
name: CI
run-name: CI/CD RUN ${{ github.ref_name }}
on:
push:
branches:
- develop
- staging
- master
- ephemeral-*
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
frontend:
uses: ./.github/workflows/frontend-checks.yml
lint:
uses: ./.github/workflows/lint.yml
tests:
uses: ./.github/workflows/tests.yml
secrets: inherit
build:
needs:
- lint
- tests
- frontend
uses: ./.github/workflows/build-and-push.yml
secrets: inherit
# trivy:
# runs-on: ubuntu-latest
# needs: [ build ]
# steps:
# - name: Checkout code
# uses: actions/checkout@v6
# - name: DockerHub login
# uses: docker/login-action@v4
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Run Trivy vulnerability scanner
# continue-on-error: true # due to getting TOOMANYREQUESTS
# uses: aquasecurity/trivy-action@0.35.0
# with:
# image-ref: '${{ vars.DOCKERHUB_ORGANIZATION }}/hope-support-images:core-${{ github.sha }}'
# format: 'table'
# exit-code: '0'
# ignore-unfixed: true
# vuln-type: 'os,library'
# severity: 'CRITICAL,HIGH'
deploy:
uses: ./.github/workflows/cd.yml
secrets: inherit
needs:
- build