WAIT [layerfile paths...]The WAIT instruction allows you to make one step require other steps to
succeed before running.It’s especially useful for conditional actions like executing notifications,
deployment, and CI/CD.
# at deploy/LayerfileFROM vm/ubuntu:18.04# Wait for the layerfiles at /unit-tests/Layerfile and /acceptance-tests/LayerfileWAIT /unit-tests /acceptance-testsRUN ./notify-slack.shRUN ./deploy.sh
# at deploy/LayerfileFROM vm/ubuntu:18.04# Wait for the layerfiles at /unit-tests/Layerfile and /acceptance-tests/LayerfileWAIT /unit-tests /acceptance-testsRUN ./notify-slack.shBUTTON deploy?RUN ./deploy.sh