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:
239239 ruby-version : ' 3.1'
240240 bundler-cache : true
241241 - name : Get IP address of host
242- id : host_ip_addr
243242 run : |
244243 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
246245 - name : Pull Docker images
247246 run : docker pull redis:$REDIS_VERSION
248247 - name : Run containers
249248 run : docker compose -f $DOCKER_COMPOSE_FILE up -d
250249 env :
251- HOST_ADDR : ${{ steps.host_ip_addr.outputs.host_ip_addr }}
250+ HOST_ADDR : ${{ env.HOST_IP_ADDR }}
252251 - name : Wait for nodes to be ready
253252 run : |
254253 node_cnt=$(docker compose -f $DOCKER_COMPOSE_FILE ps | awk '{print $3}' | tail -n +2 | wc -l)
@@ -276,7 +275,7 @@ jobs:
276275 - name : Build cluster
277276 run : bundle exec rake "build_cluster[$HOST_ADDR]"
278277 env :
279- HOST_ADDR : ${{ steps.host_ip_addr.outputs.host_ip_addr }}
278+ HOST_ADDR : ${{ env.HOST_IP_ADDR }}
280279 DEBUG : " 1"
281280 - name : Run minitest
282281 run : bundle exec rake test
You can’t perform that action at this time.
0 commit comments