This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

ci: auto-release new minor when prisma schema gets updated

+25 -8
+25 -8
.gitlab-ci.yml
··· 57 57 exit 1 58 58 fi 59 59 60 + .gitops: 61 + image: registry.inpt.fr/inp-net/images/go-just:1.23.5-1.39.0 62 + before_script: 63 + - git config --global user.name gitlab 64 + - git config --global user.email "git@noreply.inpt.fr" 65 + - git remote remove gitlab_origin || true 66 + - git remote add gitlab_origin https://bot:$BOT_TOKEN@$CI_SERVER_SHELL_SSH_HOST/$CI_PROJECT_PATH 67 + 60 68 update:prisma-schema: 61 - image: registry.inpt.fr/inp-net/images/go-just:1.23.5-1.39.0 69 + extends: .gitops 62 70 stage: update 63 71 allow_failure: true 64 72 rules: 65 73 - if: $CI_PIPELINE_SOURCE == "pipeline" 66 74 - when: manual 67 - before_script: 75 + script: 68 76 - apk add curl 69 77 - just updateschema $SCHEMA_RAW_URL 70 - - git config --global user.name gitlab 71 - - git config --global user.email "git@noreply.inpt.fr" 72 - - git remote remove gitlab_origin || true 73 - - git remote add gitlab_origin https://bot:$BOT_TOKEN@$CI_SERVER_SHELL_SSH_HOST/$CI_PROJECT_PATH 74 - script: 75 78 - git add schema.prisma 76 - - 'git commit -m "chore(prisma): update schema.prisma after churros/churros change"' 79 + - 'git commit -m "chore(prisma): update schema.prisma after churros/churros change [ci release]"' 77 80 - git push gitlab_origin HEAD:main 81 + 82 + release-after-prisma-schema-update: 83 + extends: .gitops 84 + stage: build 85 + rules: 86 + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_TITLE =~ /\[ci release\]$/ 87 + - when: manual 88 + script: 89 + - go get -v -u github.com/usvc/semver/cmd/semver 90 + - git fetch --tags 91 + - latest_tag=$(git tag -l --sort=-v:refname | head -1) 92 + - git tag v$(semver bump minor $latest_tag) 93 + - git push --tags 94 + 78 95 79 96 build: 80 97 extends: .buildkit