diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-02 14:29:41 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-02 14:29:41 -0600 |
| commit | c583bcd1473205104a1e1af812ed4976d30c7baa (patch) | |
| tree | 933edf78a4ac8aea55256e42641e56bbb4c58834 /.gitlab-ci.yml | |
| parent | 91defaefca47e9cebbe92c6abf33c4423df9bc7d (diff) | |
refactor: remove anything unrelated to the authz daemon
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 449564fa..d2a608fd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,35 @@ -test: - image: debian:bookworm +stages: + - build + - test + - validate + - runway_staging + - runway_production + +variables: + CONTAINER_IMAGE_COMMIT: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA + +include: + - project: 'gitlab-com/gl-infra/platform/runway/runwayctl' + file: 'ci-tasks/service-project/runway.yml' + inputs: + runway_service_id: authzd + image: "$CONTAINER_IMAGE_COMMIT" + runway_version: v3.61.5 + +build image: + image: docker:28 + interruptible: true + stage: build + services: + - docker:28-dind + before_script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY script: - - apt-get update -y - - apt-get install -y build-essential chromium firefox-esr curl libffi-dev zlib1g-dev libyaml-dev - - curl https://mise.run | sh - - ~/.local/bin/mise install - - echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc - - source ~/.bashrc - - echo '127.0.0.1 api.example.com' >> /etc/hosts - - echo '127.0.0.1 idp.example.com' >> /etc/hosts - - echo '127.0.0.1 ui.example.com' >> /etc/hosts - - gem update --system - - gem install bundler - - make - - ruby ./script/cibuild + - docker build --tag $CONTAINER_IMAGE_COMMIT . + - docker push $CONTAINER_IMAGE_COMMIT + +unit: + image: golang:alpine + stage: test + script: + - go test ./... |
