Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit d7439c5

Browse files
committed
Add hook directory to ci
1 parent 6b34917 commit d7439c5

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
# cd back
2121
cd -
2222
done
23-
- name: "Install npm dependencies in all persistence sub projects"
23+
- name: "Install npm dependencies in all hook sub projects"
2424
run: |
25-
for dir in persistence/*/
25+
for dir in hooks/*/
2626
do
2727
cd $dir
2828
if [ -f package.json ] && [ -f package-lock.json ]; then
@@ -37,6 +37,8 @@ jobs:
3737
npm ci
3838
cd integrations/
3939
npm ci
40+
cd hooks/
41+
npm ci
4042
- name: "Run tests"
4143
run: |
4244
npm test -- --ci --colors --coverage
@@ -172,36 +174,44 @@ jobs:
172174
path: ./integrations/zap/parser/
173175
tag_with_ref: true
174176
tag_with_sha: true
175-
persistenceImages:
176-
name: "Build / PersistenceProviders"
177+
hookImages:
178+
name: "Build / Hooks"
177179
runs-on: ubuntu-latest
178180
steps:
179181
- uses: actions/checkout@master
180182
# SDK
181183
- uses: docker/build-push-action@v1
182-
name: "Build & Push Persistence SDK"
184+
name: "Build & Push Hook SDK"
183185
with:
184186
username: ${{ secrets.DOCKER_USERNAME }}
185187
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/
188190
tag_with_ref: true
189191
# Actual PersistenceProviders
190192
- uses: docker/build-push-action@v1
191-
name: "Build & Push Elastic PersistenceProvider Image"
193+
name: "Build & Push Elastic PersistenceProvider Hook Image"
192194
with:
193195
username: ${{ secrets.DOCKER_USERNAME }}
194196
password: ${{ secrets.DOCKER_PASSWORD }}
195197
repository: scbexperimental/persistence-elastic
196-
path: ./persistence/persistence-elastic/
198+
path: ./hooks/persistence-elastic/
197199
tag_with_ref: true
198200
- uses: docker/build-push-action@v1
199201
name: "Build & Push Elastic PersistenceProvider Dashboard Importer Image"
200202
with:
201203
username: ${{ secrets.DOCKER_USERNAME }}
202204
password: ${{ secrets.DOCKER_PASSWORD }}
203205
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/
205215
tag_with_ref: true
206216
scannerImages:
207217
# Note we only build images for scanner that don't provider official public container images
@@ -231,7 +241,7 @@ jobs:
231241
name: "Test / Integration / k8s ${{ matrix.k8sVersion }}"
232242
needs:
233243
- scannerImages
234-
- persistenceImages
244+
- hookImages
235245
- parserImages
236246
- operator
237247
- lurcher

0 commit comments

Comments
 (0)