diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-11 11:34:50 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-11 11:34:50 -0600 |
| commit | 0f18f887b4608f7a9923440bafcd04c9efdd7617 (patch) | |
| tree | 0464cb07d6b99960ce55260abeda0f9234b97469 /.gitlab-ci.yml | |
| parent | 826d715c38d1999044e3e89c9d53cd46e5489786 (diff) | |
chore: build scratch image with make
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e80d44..9d5f78d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,13 +7,19 @@ build image: before_script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY script: - - echo "Building $CONTAINER_IMAGE_COMMIT" - - docker build --tag "$CONTAINER_IMAGE_COMMIT" . + - IMAGE_TAG=$CONTAINER_IMAGE_COMMIT make build-image - docker push $CONTAINER_IMAGE_COMMIT variables: CONTAINER_IMAGE_COMMIT: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA -test: +unit: image: golang:alpine + stage: test script: - - go test ./... + - make test + +integration: + image: golang:alpine + stage: test + script: + - make integration-test |
