Skip to content

Commit

Permalink
Add image prep info log (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsan3 authored May 13, 2024
1 parent 547041b commit acf42e2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions executor/linux/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ func (c *client) AssembleBuild(ctx context.Context) error {
s.Detach = true

c.Logger.Infof("creating %s service", s.Name)

_log.AppendData([]byte(fmt.Sprintf("> Preparing service image %s...\n", s.Image)))

// create the service
c.err = c.CreateService(ctx, s)
if c.err != nil {
Expand Down Expand Up @@ -326,6 +329,8 @@ func (c *client) AssembleBuild(ctx context.Context) error {
continue
}

_log.AppendData([]byte(fmt.Sprintf("> Preparing step image %s...\n", s.Image)))

c.Logger.Infof("creating %s step", s.Name)
// create the step
c.err = c.CreateStep(ctx, s)
Expand Down
2 changes: 2 additions & 0 deletions executor/linux/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func (c *client) CreateStage(ctx context.Context, s *pipeline.Stage) error {
// update the container environment with stage name
_step.Environment["VELA_STEP_STAGE"] = s.Name

_log.AppendData([]byte(fmt.Sprintf("> Preparing step image %s...\n", _step.Image)))

logger.Debugf("creating %s step", _step.Name)
// create the step
err := c.CreateStep(ctx, _step)
Expand Down
4 changes: 4 additions & 0 deletions executor/local/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ func (c *client) AssembleBuild(ctx context.Context) error {
// TODO: remove this; but we need it for tests
_service.Detach = true

fmt.Fprintln(c.stdout, _pattern, fmt.Sprintf("> Preparing service image %s...", _service.Image))

// create the service
c.err = c.CreateService(ctx, _service)
if c.err != nil {
Expand Down Expand Up @@ -213,6 +215,8 @@ func (c *client) AssembleBuild(ctx context.Context) error {
continue
}

fmt.Fprintln(c.stdout, _pattern, fmt.Sprintf("> Preparing step image %s...", _step.Image))

// create the step
c.err = c.CreateStep(ctx, _step)
if c.err != nil {
Expand Down
2 changes: 2 additions & 0 deletions executor/local/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ func (c *client) CreateStage(ctx context.Context, s *pipeline.Stage) error {
// update the container environment with stage name
_step.Environment["VELA_STEP_STAGE"] = s.Name

fmt.Fprintln(c.stdout, _pattern, fmt.Sprintf("> Preparing step image %s...", _step.Image))

// create the step
err := c.CreateStep(ctx, _step)
if err != nil {
Expand Down

0 comments on commit acf42e2

Please sign in to comment.