alpha
Login
or
Join now
gwen.works
/
churros-notella
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ci: setup job to update schema prisma
author
Gwen Le Bihan
date
1 year ago
(Feb 3, 2025, 10:22 PM +0100)
commit
256b14af
256b14afe7f7465fc6ca0af43242ead8396d6623
parent
f9794b83
f9794b830de6bbe32770104abe938f0ff63900c4
+17
-1
1 changed file
Expand all
Collapse all
Unified
Split
.gitlab-ci.yml
+17
-1
.gitlab-ci.yml
Reviewed
···
45
45
stage: test
46
46
rules:
47
47
- when: always
48
48
-
- if: $CI_PIPELINE_SOURCE == "schedule"
49
48
before_script:
50
49
- apk add curl
51
50
- just updateschema
52
51
- cp schema.prisma original_schema.prisma
52
52
+
script:
53
53
- |
54
54
if [ diff -q schema.prisma original_schema.prisma ]; then
55
55
echo "Generated schema.prisma is different from original, please run 'just updateschema' and commit the changes"
56
56
exit 1
57
57
fi
58
58
+
59
59
+
update:prisma-schema:
60
60
+
image: registry.inpt.fr/inp-net/images/go-just:1.23.5-1.39.0
61
61
+
stage: test
62
62
+
rules:
63
63
+
- if: $CI_PIPELINE_SOURCE == "trigger"
64
64
+
before_script:
65
65
+
- apk add curl
66
66
+
- just updateschema
67
67
+
- git config --global user.name gitlab
68
68
+
- git config --global user.email "git@noreply.inpt.fr"
69
69
+
- git remote add gitlab_origin https://changesets:$CHANGESETS_TOKEN@$CI_SERVER_SHELL_SSH_HOST/$CI_PROJECT_PATH || true
70
70
+
script:
71
71
+
- git add schema.prisma
72
72
+
- 'git commit -m "chore(prisma): update schema.prisma after churros/churros change"'
73
73
+
- git push gitlab_origin HEAD:main
58
74
59
75
build:
60
76
extends: .buildkit