Skip to content

Commit 0c24842

Browse files
committed
CI tweaks.
1 parent d04d702 commit 0c24842

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ jobs:
4444
run: ansible-playbook --extra-vars="@vars/${{ matrix.solr_version }}.yml" main.yml
4545

4646
- name: Get the exact version of Solr used.
47-
run: export exact_version=$(cat vars/${solr_version}.yml | shyaml get-value solr_version)
47+
run: |
48+
echo "exact_version=$(cat vars/${solr_version}.yml | shyaml get-value solr_version)" >> $GITHUB_ENV
4849
4950
- name: Run the container.
50-
run: docker run -d --name=solr -p 8983:8983 geerlingguy/solr:${exact_version}
51+
run: docker run -d --name=solr -p 8983:8983 geerlingguy/solr:${{ env.exact_version }}
5152

5253
- name: Verify solr is running.
5354
run: >
54-
docker exec solr ps -ax | grep -q "${solr_process}"
55+
docker exec solr ps -ax | grep -q "solr"
5556
&& (echo 'solr is running: pass' && exit 0)
5657
|| (echo 'solr is running: fail' && exit 1)
5758

0 commit comments

Comments
 (0)