CI updates

This commit is contained in:
Darren Clarke 2023-03-31 08:46:06 +02:00
parent 38343f4219
commit 21c4c2f3bb
2 changed files with 8 additions and 61 deletions

View file

@ -1,6 +1,10 @@
image: node:18-bullseye-slim
include:
- /apps/leafcutter/.gitlab-ci.yml
stages:
- helm-release
- build
- docker-build
- docker-release
@ -9,36 +13,3 @@ cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .turbo/
build:
stage: build
script:
- turbo build
docker-build:
image: registry.gitlab.com/guardianproject-ops/docker-alpine-git:latest
services:
- docker:dind
stage: docker-build
variables:
DOCKER_NS: ${CI_REGISTRY_IMAGE}
DOCKER_TAG: ${CI_COMMIT_SHORT_SHA}
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- make docker/build-fresh-push
docker-release:
image: registry.gitlab.com/guardianproject-ops/docker-alpine-git:latest
services:
- docker:dind
stage: docker-release
variables:
DOCKER_NS: ${CI_REGISTRY_IMAGE}
DOCKER_TAG: ${CI_COMMIT_SHORT_SHA}
DOCKER_TAG_NEW: ${CI_COMMIT_REF_NAME}
only:
- main
- develop
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- make docker/add-tag