Skip to content
Snippets Groups Projects
Verified Commit f773df10 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Add Git user config and refactor jobs


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 0cba1d4e
No related branches found
No related tags found
1 merge request!19WIP: POC for releases to be done by the CI
Pipeline #
Loading
Loading
@@ -12,32 +12,23 @@ before_script:
- gem install bundler --no-ri --no-rdoc
- bundle install --jobs $(nproc) "${FLAGS[@]}"
- cp .env.example .env
- git config --global user.email "releaser@gitlab.com"
- git config --global user.name "GitLab Releaser"
 
spec:
stage: test
script:
- bundle exec rake
 
release:ce+ee:
stage: release
script:
- RELEASE_VERSION = echo $CI_BUILD_TAG | sed 's/gitlab-ee+ce-//'
- echo $RELEASE_VERSION
# TODO: The runner will need right to push to all the gitlab-ce, gitlab-ee and omnibus-gitlab remotes
- bundle exec rake "release[$RELEASE_VERSION]" TEST=true
only:
- /^gitlab-ee+ce-.*$/
except:
- branches
release:ee:
stage: release
script:
- RELEASE_VERSION = echo $CI_BUILD_TAG | sed 's/gitlab-ee-//'
- RELEASE_VERSION=echo $CI_BUILD_TAG | sed 's/gitlab-ee-//'
- echo $RELEASE_VERSION
# TODO: The runner will need right to push to all the gitlab-ce, gitlab-ee and omnibus-gitlab remotes
- bundle exec rake "release[$RELEASE_VERSION]" CE=false TEST=true
only:
- /^gitlab-ee+ce-.*$/
- /^gitlab-ee-.*$/
except:
- branches
Loading
Loading
@@ -45,11 +36,12 @@ release:ee:
release:ce:
stage: release
script:
- RELEASE_VERSION = echo $CI_BUILD_TAG | sed 's/gitlab-ce-//'
- RELEASE_VERSION=echo $CI_BUILD_TAG | sed 's/gitlab-ce-//'
- echo $RELEASE_VERSION
# TODO: The runner will need right to push to all the gitlab-ce, gitlab-ee and omnibus-gitlab remotes
- bundle exec rake "release[$RELEASE_VERSION]" EE=false TEST=true
only:
- /^gitlab-ee+ce-.*$/
- /^gitlab-ce-.*$/
except:
- branches
Loading
Loading
@@ -57,7 +49,7 @@ release:ce:
notify:slack:failure:
stage: notifications
script:
- ./scripts/notify_slack.sh "#releases" "Release \`$RELEASE_VERSION\` failed! Commit \`$CI_BUILD_REF\`. See <https://gitlab.com/gitlab-org/release-tools/$CI_BUILD_REF/builds>"
- ./support/notify_slack.sh "#releases" "Release \`$RELEASE_VERSION\` failed! Commit \`$CI_BUILD_REF\`. See <https://gitlab.com/gitlab-org/release-tools/$CI_BUILD_REF/builds>"
when: on_failure
only:
- /^gitlab-ee+ce-.*$/
Loading
Loading
@@ -69,7 +61,7 @@ notify:slack:failure:
notify:slack:success:
stage: notifications
script:
- ./scripts/notify_slack.sh "#releases" "Release \`$RELEASE_VERSION\` succeeded! Commit \`$CI_BUILD_REF\`. See builds at <https://dev.gitlab.org/gitlab-org/omnibus-gitlab/$CI_BUILD_REF/builds>"
- ./support/notify_slack.sh "#releases" "Release \`$RELEASE_VERSION\` succeeded! Commit \`$CI_BUILD_REF\`. See builds at <https://dev.gitlab.org/gitlab-org/omnibus-gitlab/$CI_BUILD_REF/builds>"
when: on_success
only:
- /^gitlab-ee+ce-.*$/
Loading
Loading
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment