5
5
workflow_dispatch :
6
6
push :
7
7
branches :
8
- - ' main'
9
- tags :
10
- - ' v*'
11
- pull_request :
12
- branches :
13
- - ' main'
14
- - ' ci/trivy-fails'
8
+ - ' do-not-merge/hackathon-2025'
15
9
16
10
env :
17
11
DOCKER_USER : 1001:127
31
25
images : lasuite/impress-backend
32
26
-
33
27
name : Login to DockerHub
34
- if : github.event_name != 'pull_request'
35
28
run : echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_USER }}" --password-stdin
36
29
-
37
30
name : Run trivy scan
46
39
context : .
47
40
target : backend-production
48
41
build-args : DOCKER_USER=${{ env.DOCKER_USER }}:-1000
49
- push : ${{ github.event_name != 'pull_request' }}
50
42
tags : ${{ steps.meta.outputs.tags }}
51
43
labels : ${{ steps.meta.outputs.labels }}
52
44
64
56
images : lasuite/impress-frontend
65
57
-
66
58
name : Login to DockerHub
67
- if : github.event_name != 'pull_request'
68
59
run : echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_USER }}" --password-stdin
69
60
-
70
61
name : Run trivy scan
82
73
build-args : |
83
74
DOCKER_USER=${{ env.DOCKER_USER }}:-1000
84
75
PUBLISH_AS_MIT=false
85
- push : ${{ github.event_name != 'pull_request' }}
86
76
tags : ${{ steps.meta.outputs.tags }}
87
77
labels : ${{ steps.meta.outputs.labels }}
88
78
100
90
images : lasuite/impress-y-provider
101
91
-
102
92
name : Login to DockerHub
103
- if : github.event_name != 'pull_request'
104
93
run : echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_USER }}" --password-stdin
105
94
-
106
95
name : Run trivy scan
@@ -116,7 +105,6 @@ jobs:
116
105
file : ./src/frontend/servers/y-provider/Dockerfile
117
106
target : y-provider
118
107
build-args : DOCKER_USER=${{ env.DOCKER_USER }}:-1000
119
- push : ${{ github.event_name != 'pull_request' }}
120
108
tags : ${{ steps.meta.outputs.tags }}
121
109
labels : ${{ steps.meta.outputs.labels }}
122
110
@@ -125,7 +113,6 @@ jobs:
125
113
- build-and-push-frontend
126
114
- build-and-push-backend
127
115
runs-on : ubuntu-latest
128
- if : github.event_name != 'pull_request'
129
116
steps :
130
117
- uses : numerique-gouv/action-argocd-webhook-notification@main
131
118
id : notify
0 commit comments