Skip to content

Commit cadfc84

Browse files
committed
pass in node version tag for docker compose file
1 parent 267fbcc commit cadfc84

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/tests-integration.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
CONFIGURE_ENV: ${{ inputs.configureEnv }}
5252
run: $CONFIGURE_ENV
5353

54+
- name: configure Docker Node.js image tag
55+
id: node-version-tag
56+
if: ${{ inputs.dockerize }}
57+
run: echo "value=:$(< .node-version)-slim" >> "$GITHUB_OUTPUT"
58+
5459
- name: setup environment
5560
uses: ./.github/actions/setup
5661
with:
@@ -77,11 +82,15 @@ jobs:
7782

7883
- name: run containers
7984
timeout-minutes: 8
85+
env:
86+
NODE_VERSION_TAG: ${{ steps.node-version-tag.outputs.value }}
8087
run: |
8188
docker compose -f docker/docker-compose.community.yml -f ./integration-tests/docker-compose.integration.yaml --env-file ./integration-tests/.env up -d --wait
8289
8390
- name: troubleshoot containers
8491
if: ${{ failure() }}
92+
env:
93+
NODE_VERSION_TAG: ${{ steps.node-version-tag.outputs.value }}
8594
run: |
8695
docker compose -f docker/docker-compose.community.yml -f ./integration-tests/docker-compose.integration.yaml --env-file ./integration-tests/.env ps
8796
@@ -104,10 +113,14 @@ jobs:
104113

105114
- name: log dump
106115
if: ${{ failure() }}
116+
env:
117+
NODE_VERSION_TAG: ${{ steps.node-version-tag.outputs.value }}
107118
run: |
108119
docker compose -f docker/docker-compose.community.yml -f ./integration-tests/docker-compose.integration.yaml --env-file ./integration-tests/.env logs
109120
110121
- name: inspect health
111122
if: ${{ failure() }}
123+
env:
124+
NODE_VERSION_TAG: ${{ steps.node-version-tag.outputs.value }}
112125
run: |
113126
docker inspect $(docker compose -f ./docker/docker-compose.community.yml -f ./integration-tests/docker-compose.integration.yaml --env-file ./integration-tests/.env ps -aq) | jq

0 commit comments

Comments
 (0)