|
20 | 20 | # cd back |
21 | 21 | cd - |
22 | 22 | done |
23 | | - - name: "Install npm dependencies in all persistence sub projects" |
| 23 | + - name: "Install npm dependencies in all hook sub projects" |
24 | 24 | run: | |
25 | | - for dir in persistence/*/ |
| 25 | + for dir in hooks/*/ |
26 | 26 | do |
27 | 27 | cd $dir |
28 | 28 | if [ -f package.json ] && [ -f package-lock.json ]; then |
|
37 | 37 | npm ci |
38 | 38 | cd integrations/ |
39 | 39 | npm ci |
| 40 | + cd hooks/ |
| 41 | + npm ci |
40 | 42 | - name: "Run tests" |
41 | 43 | run: | |
42 | 44 | npm test -- --ci --colors --coverage |
@@ -172,36 +174,44 @@ jobs: |
172 | 174 | path: ./integrations/zap/parser/ |
173 | 175 | tag_with_ref: true |
174 | 176 | tag_with_sha: true |
175 | | - persistenceImages: |
176 | | - name: "Build / PersistenceProviders" |
| 177 | + hookImages: |
| 178 | + name: "Build / Hooks" |
177 | 179 | runs-on: ubuntu-latest |
178 | 180 | steps: |
179 | 181 | - uses: actions/checkout@master |
180 | 182 | # SDK |
181 | 183 | - uses: docker/build-push-action@v1 |
182 | | - name: "Build & Push Persistence SDK" |
| 184 | + name: "Build & Push Hook SDK" |
183 | 185 | with: |
184 | 186 | username: ${{ secrets.DOCKER_USERNAME }} |
185 | 187 | password: ${{ secrets.DOCKER_PASSWORD }} |
186 | | - repository: scbexperimental/persistence-sdk-nodejs |
187 | | - path: ./persistence-sdk/nodejs/ |
| 188 | + repository: scbexperimental/hook-sdk-nodejs |
| 189 | + path: ./hook-sdk/nodejs/ |
188 | 190 | tag_with_ref: true |
189 | 191 | # Actual PersistenceProviders |
190 | 192 | - uses: docker/build-push-action@v1 |
191 | | - name: "Build & Push Elastic PersistenceProvider Image" |
| 193 | + name: "Build & Push Elastic PersistenceProvider Hook Image" |
192 | 194 | with: |
193 | 195 | username: ${{ secrets.DOCKER_USERNAME }} |
194 | 196 | password: ${{ secrets.DOCKER_PASSWORD }} |
195 | 197 | repository: scbexperimental/persistence-elastic |
196 | | - path: ./persistence/persistence-elastic/ |
| 198 | + path: ./hooks/persistence-elastic/ |
197 | 199 | tag_with_ref: true |
198 | 200 | - uses: docker/build-push-action@v1 |
199 | 201 | name: "Build & Push Elastic PersistenceProvider Dashboard Importer Image" |
200 | 202 | with: |
201 | 203 | username: ${{ secrets.DOCKER_USERNAME }} |
202 | 204 | password: ${{ secrets.DOCKER_PASSWORD }} |
203 | 205 | repository: scbexperimental/persistence-elastic-dashboard-importer |
204 | | - path: ./persistence/persistence-elastic/dashboardImporter/ |
| 206 | + path: ./hooks/persistence-elastic/dashboardImporter/ |
| 207 | + tag_with_ref: true |
| 208 | + - uses: docker/build-push-action@v1 |
| 209 | + name: "Build & Push GenericWebhook Hook Image" |
| 210 | + with: |
| 211 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 212 | + password: ${{ secrets.DOCKER_PASSWORD }} |
| 213 | + repository: scbexperimental/generic-webhook |
| 214 | + path: ./hooks/generic-webhook/ |
205 | 215 | tag_with_ref: true |
206 | 216 | scannerImages: |
207 | 217 | # Note we only build images for scanner that don't provider official public container images |
@@ -231,7 +241,7 @@ jobs: |
231 | 241 | name: "Test / Integration / k8s ${{ matrix.k8sVersion }}" |
232 | 242 | needs: |
233 | 243 | - scannerImages |
234 | | - - persistenceImages |
| 244 | + - hookImages |
235 | 245 | - parserImages |
236 | 246 | - operator |
237 | 247 | - lurcher |
|
0 commit comments