func (s *buildTaskCommandBuilderState) addTagOptions(cb *command.Builder) error {
    for _, tag := range s.task.Tags {
        expanded, err := s.env.ExpandString(tag)
        if err != nil {
            return err