func WaitForImages(cfg *config.Config, tag string) error {
	ticker := time.NewTicker(tickerInterval)
	for _, cntr := range cfg.Containers {
		fmt.Printf("Waiting for %s:%s to build on %s...\n", cntr.Image, tag, cntr.Registry)
		timer := time.NewTimer(cntr.Timeout)
		for {
			ready, err := checkImage(&cntr, tag)
			if err != nil {
				return err
			}
			if ready {
				break
			}

			select {
			case <-timer.C:
				return ErrTimeout
			case <-ticker.C:
				continue
			}
		}
	}

	return nil
}
// WaitForImages waits for the given docker iamges and tag to be built
WaitForImages waits for the given docker iamges and tag to be built
// WaitForImages waits for the given docker iamges and tag to be built
func WaitForImages(cfg *config.Config, tag string) error {
	ticker := time.NewTicker(tickerInterval)
	for _, cntr := range cfg.Containers {
		fmt.Printf("Waiting for %s:%s to build on %s...\n", cntr.Image, tag, cntr.Registry)
		timer := time.NewTimer(cntr.Timeout)
		for {
			ready, err := checkImage(&cntr, tag)
			if err != nil {
				return err
			}
			if ready {
				break
			}
			select {
			case <-timer.C:
				return ErrTimeout
			case <-ticker.C:
				continue
			}
		}
	}
	return nil
}
func WaitForImages ( cfg * config . Config , tag string ) error { ticker := time . NewTicker ( tickerInterval ) for _ , cntr := range cfg . Containers { fmt . Printf ( " \n " , cntr . Image , tag , cntr . Registry ) timer := time . NewTimer ( cntr . Timeout ) for { ready , err := checkImage ( & cntr , tag ) if err != nil { return err } if ready { break } select { case <- timer . C : return ErrTimeout case <- ticker . C : continue } } } return nil }
WaitForImages waits for the given docker iamges and tag to be built
WaitForImages waits for the given docker iamges and tag to be built