mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
add clustertests to gitlab CI
had to install some dependencies and things on the runner which are detailed in a comment.
This commit is contained in:
parent
f6c458b093
commit
2f30bcda45
1 changed files with 17 additions and 1 deletions
|
|
@ -188,7 +188,6 @@ package for linux amd64:
|
|||
|
||||
# Build a FB Docker image with CI/CD and push to the GitLab registry.
|
||||
build container fb:
|
||||
image: docker:stable
|
||||
stage: build
|
||||
needs:
|
||||
- "build for linux amd64"
|
||||
|
|
@ -204,6 +203,23 @@ build container fb:
|
|||
- docker push $tag
|
||||
- echo Created docker featurebase image with tag "$tag"
|
||||
|
||||
|
||||
# clustertests doesn't run in docker, and requires several things to be set up on the runner to work:
|
||||
# 1. Install Go, make sure it's on the path
|
||||
# 2. Make sure "make" is installed
|
||||
# 3. make sure docker/docker-compose is installed
|
||||
# 4. make sure the git config is done `git config --global --add url."ssh://git@github.com/".insteadOf "https://github.com/"`
|
||||
# 5. Add deploy key github.com/molecula/featurebase/settings/keys and add public key in .ssh folder of gitlab-runner user
|
||||
clustertests:
|
||||
stage: integration
|
||||
tags:
|
||||
- shell
|
||||
- gcp # this is to restrict to the GCP runner we set up manually, once all our runners are set up properly we can remove this.
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
|
||||
script:
|
||||
- make clustertests
|
||||
|
||||
smoke test:
|
||||
stage: integration
|
||||
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue