diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72ddc0eb499a57129cb92f9cb5da3b1d0ecc3da0..afda850b104874e6ed85e42e330424f0fe91c233 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,6 @@ variables: # The Go and alpine versions should match the ones used for building the production image in Dockerfile GO_VERSION: "1.21" ALPINE_VERSION: "alpine3.18" - RUNWAY_VERSION: &RUNWAY_VERSION v1.19.0 # workaround for https://gitlab.com/gitlab-org/gitlab/-/issues/219065 include: # https://docs.gitlab.com/ee/user/application_security/sast/ @@ -16,19 +15,18 @@ include: - template: Workflows/MergeRequest-Pipelines.gitlab-ci.yml # https://gitlab.com/gitlab-com/gl-infra/platform/runway/ci-tasks - project: 'gitlab-com/gl-infra/platform/runway/ci-tasks' - ref: *RUNWAY_VERSION + ref: v1.14.2 file: 'service-project/runway.yml' inputs: runway_service_id: glgo image: $CI_IMAGE - runway_version: *RUNWAY_VERSION + runway_version: v1.14.2 stages: - verify - test - build - - runway_staging - - runway_production + - runway .scanners: &scanners stage: verify diff --git a/.runway/env-production.yml b/.runway/env-production.yml index 12a29099b3bba665c4937a387c7f14cf0ebd8c0a..9a4ec6ab9ed5f044d177ac6ff08c109c4cb08f55 100644 --- a/.runway/env-production.yml +++ b/.runway/env-production.yml @@ -1,3 +1,5 @@ +GITLAB_URL: "https://gitlab.com" +GITLAB_API_URL: "https://gitlab.com/api/v4/" GLGO_IDENTITY_ISSUER: "https://auth.gcp.gitlab.com" # GLGO_KNOWN_ISSUERS is a comma separated list of ; pairs GLGO_KNOWN_ISSUERS: "https://gitlab.com;https://gitlab.com/oauth/discovery/keys" \ No newline at end of file diff --git a/.runway/env-staging.yml b/.runway/env-staging.yml index 61c04ad388902ea046d72f071e0069ed2568d0ba..f82e9354f866c0cc784122e369db25925bbbdc27 100644 --- a/.runway/env-staging.yml +++ b/.runway/env-staging.yml @@ -1,3 +1,5 @@ +GITLAB_URL: "https://staging.gitlab.com" +GITLAB_API_URL: "https://staging.gitlab.com/api/v4/" GLGO_IDENTITY_ISSUER: "https://glgo.staging.runway.gitlab.net" # GLGO_KNOWN_ISSUERS is a comma separated list of ; pairs GLGO_KNOWN_ISSUERS: "https://staging.gitlab.com;https://staging.gitlab.com/oauth/discovery/keys" \ No newline at end of file diff --git a/.runway/runway.yml b/.runway/runway.yml index cd7e13ead51026cd7685ab7cd745e3b17e5b4497..0ca29ec589a66131bb9689ca56120c1e7cac4c2d 100644 --- a/.runway/runway.yml +++ b/.runway/runway.yml @@ -1,16 +1,10 @@ -# https://gitlab-com.gitlab.io/gl-infra/platform/runway/runwayctl/manifest.schema.html apiVersion: runway/v1.0.0-beta kind: RunwayService metadata: name: glgo - owner_email_handle: grzesiek + owner: grzesiek spec: image: "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}" - startup_probe: - path: "/health" - liveness_probe: - path: "/health" - # https://gitlab.com/gitlab-com/gl-infra/platform/runway/docs/-/blob/master/scalability.md scalability: min_instances: 0 resources: