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,34 +1,10 @@
image: node:16-bullseye-slim
stages:
- helm-release
- build
# - test
- docker-build
- docker-release
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
- .next/cache/
build:
leafcutter-build:
stage: build
script:
- npm install
- npm run-script build
# chromatic:
# stage: test
# script:
# - npm install
# - npm run-script chromatic --project-token=${CHROMATIC_PROJECT_TOKEN}
# only:
# - main
# - develop
docker-build:
leafcutter-docker-build:
image: registry.gitlab.com/guardianproject-ops/docker-alpine-git:latest
services:
- docker:dind
@ -40,7 +16,7 @@ docker-build:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- make docker/build-fresh-push
docker-release:
leafcutter-docker-release:
image: registry.gitlab.com/guardianproject-ops/docker-alpine-git:latest
services:
- docker:dind
@ -56,7 +32,7 @@ docker-release:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- make docker/add-tag
helm-release:
leafcutter-helm-release:
image: debian:bullseye-slim
stage: helm-release
only: