now re-pulls Image regularily
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
parent
0e21438cc8
commit
e5c78de08f
|
@ -41,15 +41,19 @@ func ConnectSocket() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func PullImage() error {
|
func PullImage() error {
|
||||||
log.Println("Downloading Container image ", viper.GetString("image"))
|
for {
|
||||||
image := viper.GetString("image")
|
log.Println("Downloading Container image ", viper.GetString("image"))
|
||||||
conn := Socket
|
image := viper.GetString("image")
|
||||||
_, err := images.Pull(conn, image, nil)
|
conn := Socket
|
||||||
if err != nil {
|
_, err := images.Pull(conn, image, nil)
|
||||||
log.Println(err)
|
if err != nil {
|
||||||
return err
|
log.Println(err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
time.Sleep(1 * time.Hour)
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup deletes Containers older than the specified maximum Age (Equal to session cookie maximum age)
|
// Cleanup deletes Containers older than the specified maximum Age (Equal to session cookie maximum age)
|
||||||
|
|
Loading…
Reference in New Issue