main
 1stages:
 2  - build
 3  - test
 4  - validate
 5  - runway_staging
 6  - runway_production
 7
 8variables:
 9  CONTAINER_IMAGE_COMMIT: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
10
11include:
12  - project: 'gitlab-com/gl-infra/platform/runway/runwayctl'
13    file: 'ci-tasks/service-project/runway.yml'
14    inputs:
15      runway_service_id: sparkle
16      image: "$CONTAINER_IMAGE_COMMIT"
17      runway_version: v3.61.5
18
19build image:
20  image: docker:28
21  interruptible: true
22  stage: build
23  services:
24    - docker:28-dind
25  before_script:
26    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
27  script:
28    - docker build --tag $CONTAINER_IMAGE_COMMIT .
29    - docker push $CONTAINER_IMAGE_COMMIT
30
31unit:
32  image: golang:alpine
33  stage: test
34  script:
35    - go test ./...