hashicorp / waypoint

A tool to build, deploy, and release any application on any platform.
https://waypointproject.io
Other
4.76k stars 327 forks source link

Deploy always start with v1 in gitlab ci pipeline #2831

Closed pontostroy closed 2 years ago

pontostroy commented 2 years ago

Describe the bug Deploy from gitlab ci always create v1 deploy

Steps to Reproduce Run simple pipeline:

$ ./waypoint init -workspace dev
-> Validating configuration file...
-> Configuration file appears valid
-> Validating server credentials...
-> Local mode initialized successfully
-> Checking if project "replaced" is registered...
-> Project "replaced" is not registered with the server. Registering...
-> Application "api" is not registered with the server. Registering...
-> Project "replaced" and all apps are registered with the server.
Project initialized!
app "api" {
  labels = {
    "service" = "api"
    "env"     = "${var.env_prefix}${workspace.name}"
  }

  url {
    auto_hostname = false
  }

  build {
    use "docker-pull" {
      image              = var.docker_image
      tag                = var.docker_tag
      disable_entrypoint = true
      encoded_auth       = filebase64("${path.app}/dockerAuth.json")
    }
  }

  deploy {
    use "kubernetes" {
      namespace  = "${var.env_prefix}${workspace.name}"
      kubeconfig = var.kubeconfig_path
      cpu {
        request = "250m"
        limit   = "300m"
      }
      probe_path = "/api/v1/health"

      image_secret = "dockerimages"
      service_port = 8000
      static_environment = {
        USER     = var.acs_user
        PASSWORD = var.acs_password
      }
    }
  }

  release {
    use "kubernetes" {
      namespace  = "${var.env_prefix}${workspace.name}"
      kubeconfig = var.kubeconfig_path
      ingress "http" {
        path_type = "Prefix"
        path      = "/"
        host      = "${var.env_prefix}${workspace.name}${var.app_name}.${var.env_domain}"
      }
    }
  }
}

Expected behavior Next deploy should be v2...v10

Waypoint Platform Versions

pontostroy commented 2 years ago
Need to setup this vars on ci:
WAYPOINT_SERVER_ADDR:
WAYPOINT_SERVER_TOKEN:
WAYPOINT_SERVER_TLS: 
WAYPOINT_SERVER_TLS_SKIP_VERIFY: