File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -239,16 +239,15 @@ jobs:
239
239
ruby-version : ' 3.1'
240
240
bundler-cache : true
241
241
- name : Get IP address of host
242
- id : host_ip_addr
243
242
run : |
244
243
host_ip_addr=$(ip a | grep eth0 | grep inet | awk '{print $2}' | cut -d'/' -f1)
245
- echo "::set-output name=host_ip_addr:: $host_ip_addr"
244
+ echo "HOST_IP_ADDR= $host_ip_addr" >> $GITHUB_ENV
246
245
- name : Pull Docker images
247
246
run : docker pull redis:$REDIS_VERSION
248
247
- name : Run containers
249
248
run : docker compose -f $DOCKER_COMPOSE_FILE up -d
250
249
env :
251
- HOST_ADDR : ${{ steps.host_ip_addr.outputs.host_ip_addr }}
250
+ HOST_ADDR : ${{ env.HOST_IP_ADDR }}
252
251
- name : Wait for nodes to be ready
253
252
run : |
254
253
node_cnt=$(docker compose -f $DOCKER_COMPOSE_FILE ps | awk '{print $3}' | tail -n +2 | wc -l)
@@ -276,7 +275,7 @@ jobs:
276
275
- name : Build cluster
277
276
run : bundle exec rake "build_cluster[$HOST_ADDR]"
278
277
env :
279
- HOST_ADDR : ${{ steps.host_ip_addr.outputs.host_ip_addr }}
278
+ HOST_ADDR : ${{ env.HOST_IP_ADDR }}
280
279
DEBUG : " 1"
281
280
- name : Run minitest
282
281
run : bundle exec rake test
You can’t perform that action at this time.
0 commit comments