mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-10-02 00:11:59 +00:00
auto pull images
This commit is contained in:
parent
0acbf898dc
commit
65f885e478
1 changed files with 3 additions and 3 deletions
|
@ -15,13 +15,13 @@ var (
|
||||||
DefaultEntrypoint = []string{"/bin/drone-exec"}
|
DefaultEntrypoint = []string{"/bin/drone-exec"}
|
||||||
|
|
||||||
// default argument to invoke build steps
|
// default argument to invoke build steps
|
||||||
DefaultBuildArgs = []string{"--cache", "--debug", "--clone", "--build", "--deploy"}
|
DefaultBuildArgs = []string{"--pull", "--cache", "--debug", "--clone", "--build", "--deploy"}
|
||||||
|
|
||||||
// default argument to invoke build steps
|
// default argument to invoke build steps
|
||||||
DefaultPullRequestArgs = []string{"--cache", "--clone", "--build"}
|
DefaultPullRequestArgs = []string{"--cache", "--clone", "--build"}
|
||||||
|
|
||||||
// default arguments to invoke notify steps
|
// default arguments to invoke notify steps
|
||||||
DefaultNotifyArgs = []string{"--notify"}
|
DefaultNotifyArgs = []string{"--pull", "--notify"}
|
||||||
)
|
)
|
||||||
|
|
||||||
type worker struct {
|
type worker struct {
|
||||||
|
@ -60,7 +60,7 @@ func (w *worker) Build(name string, stdin []byte, pr bool) (_ int, err error) {
|
||||||
// TEMPORARY: always try to pull the new image for now
|
// TEMPORARY: always try to pull the new image for now
|
||||||
// since we'll be frequently updating the build image
|
// since we'll be frequently updating the build image
|
||||||
// for the next few weeks
|
// for the next few weeks
|
||||||
// w.client.PullImage(conf.Image, nil)
|
w.client.PullImage(conf.Image, nil)
|
||||||
|
|
||||||
w.build, err = docker.Run(w.client, conf, name)
|
w.build, err = docker.Run(w.client, conf, name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue