Skip to content

Commit

Permalink
Fix ci (DataDog#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianVeaux authored Oct 14, 2020
1 parent 00b2230 commit c00cad2
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ variables:
stages:
- release

workflow:
rules:
- if: $CI_COMMIT_MESSAGE =~ /^\[Release\] Update metadata/
when: never
- if: '$CI_COMMIT_BRANCH == "master"'
when: always

release-auto:
stage: release
image: $TAGGER_IMAGE
only:
- master
except:
- schedules
script:
- ddev --version
- ddev config set repos.extras .
Expand All @@ -23,30 +26,3 @@ release-auto:
# Prefix every line with a timestamp
- ./.gitlab/release/tag-release.sh 2>&1 | ts "[%H:%M:%S %Z] "
tags: [ "runner:main", "size:large" ]

release-manual:
stage: release
image: $TAGGER_IMAGE
only:
# Integration release tags e.g. any_check-X.Y.Z-rc.N
- /.*-\d+\.\d+\.\d+(-(rc|pre|alpha|beta)\.\d+)?$/
except:
- schedules
script:
- ddev --version
- ddev config set repos.extras .
- ddev config set repo extras
- ./.gitlab/release/git-auth.sh
# Get tagger info
- tagger=$(git for-each-ref refs/tags/$CI_COMMIT_TAG --format='%(taggername) %(taggeremail)')
# The automatic release builder will trigger this job as a side-effect of
# tagging releases. To prevent multiple redundant builds we don't trigger
# the pipeline unless the tag was applied manually.
- |
if [[ "$tagger" =~ "$TAGGER_NAME <$TAGGER_EMAIL>" ]]; then
echo "Skipping, packages have already been built"
else
./.gitlab/release/sign-release.sh
./.gitlab/release/build-packages.sh
fi
tags: [ "runner:main", "size:large" ]

0 comments on commit c00cad2

Please sign in to comment.