Skip to content

Commit ef3af1d

Browse files
committed
Add volume to sg-bridge container in CI
1 parent ad9f37b commit ef3af1d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/integration.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
docker run --name=sgbridge --network host $BRIDGE_VOLUME -d -uroot \
7777
-e GITHUB_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPSTOOLS_REPO \
78-
--workdir=$(dirname $BRIDGE_SOCKET) \
78+
--workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
7979
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/run_bridge.sh
8080
- name: Install collectd
8181
run: |
@@ -171,7 +171,7 @@ jobs:
171171
run: |
172172
docker run --name=sgbridge --network host $BRIDGE_VOLUME -d -uroot \
173173
-e GITHUB_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPSTOOLS_REPO \
174-
--workdir=$(dirname $BRIDGE_SOCKET) \
174+
--workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
175175
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/run_bridge.sh
176176
- name: Set Ceilometer pipelines to QDR output and restart notification agent
177177
run: |
@@ -287,10 +287,6 @@ jobs:
287287
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/ceilometer/run_validation.sh
288288
#-------------------------------------------------------------------------------
289289
logging:
290-
# Disable Logging CI job, because it's failing. This functionality was never
291-
# used in the downstream product. We can re-enable and fix the job if we
292-
# determine the functionality is useful.
293-
if: false
294290
name: "[logging] handler: logs; application: elasticsearch, loki"
295291
runs-on: ubuntu-22.04
296292
env:
@@ -334,7 +330,7 @@ jobs:
334330
if: steps.bridge_branch.outcome == 'success'
335331
run: |
336332
docker run --name=sgbridge $BRIDGE_VOLUME -d -uroot --network host -e OPSTOOLS_REPO \
337-
-e GITHUB_REF -e BRIDGE_SOCKET --workdir=$(dirname $BRIDGE_SOCKET) \
333+
-e GITHUB_REF -e BRIDGE_SOCKET --workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
338334
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/logging/run_bridge.sh
339335
- name: Run rsyslog to produce log messages
340336
run: |

0 commit comments

Comments
 (0)