File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,20 @@ plugins:
1616 numMatches : 1
1717 numReplacements : 1
1818- - "@semantic-release/exec"
19- - prepareCmd : " docker build -t baloise/gitopscli ."
20- - - "semantic-release-docker"
21- - name : " baloise/gitopscli"
19+ - verifyConditionsCmd : echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
20+ verifyReleaseCmd : |
21+ MAJOR_MINOR_PATCH=${/^((\d+)\.\d+)\.\d+$/.exec(nextRelease.version)}
22+ if [ -z $MAJOR_MINOR_PATCH ]; then echo "Only SemVer versions with version core (major.minor.patch) supported!"; exit 1; fi
23+ prepareCmd : docker build -t $DOCKER_IMAGE:latest .
24+ publishCmd : |
25+ MAJOR_MINOR_PATCH=${/^((\d+)\.\d+)\.\d+$/.exec(nextRelease.version)[0]}
26+ MAJOR_MINOR=${ /^((\d+)\.\d+)\.\d+$/.exec(nextRelease.version)[1]}
27+ MAJOR=${ /^((\d+)\.\d+)\.\d+$/.exec(nextRelease.version)[2]}
28+ docker tag $DOCKER_IMAGE:latest $DOCKER_IMAGE:$MAJOR_MINOR_PATCH
29+ docker tag $DOCKER_IMAGE:latest $DOCKER_IMAGE:$MAJOR_MINOR
30+ docker tag $DOCKER_IMAGE:latest $DOCKER_IMAGE:$MAJOR
31+ docker push $DOCKER_IMAGE:latest
32+ docker push $DOCKER_IMAGE:$MAJOR_MINOR_PATCH
33+ docker push $DOCKER_IMAGE:$MAJOR_MINOR
34+ docker push $DOCKER_IMAGE:$MAJOR
2235 - " @semantic-release/github"
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ language: shell
44
55env :
66 global :
7+ - DOCKER_IMAGE : baloise/gitopscli
78 # DOCKER_USERNAME
89 - secure : " Ecq9r+yXVc9gVdn1e4sDS/yegMKOyN3F6f4jxNSNl1pEkBZayVOvl6seh58sK+QzaIOLlrMYNlOzmWIKaekRuskYLJNYMUh67RJB24knOMSbA0hD3WPO8GbFY1Y/Xe1Gk5zKlLqFKe9OoCbM0ItGIXL2DrFPWl94F1YoZim2h7q6lFEo9NHvYSjreGMcqJujQKoN5/UkO76C3TEKNFXbyxev18nHwXQvqC2axbZONYEQuzYC7dDDAHRMxQ25t2qcWh19f/ssl0qR7VYheBY72Pypvl131+qIxaMl+r/7UeKHnhrM2/ineyo8VPfxhHwar31ldu0YyC0KtSYEMERASsKmJNyaP9d3mo6Vciws/8fGaU0FqlwfRPOhaa/ixMS43qJ4NS9vSogteQJVIIC4B9mHmFvzShDK5aDML+KJ0ehQnayS/30AywS80iSkSWdbkKPAdr+djVhUbey+LAWPVdmJOnIiBET4eSFqJ37dXmcKrhUcfrthL2SftkTGZ4Fm4gHPNYWXIej9N6kTwHlYzRkuJN3PNTLsqp9YE6dUYIUZEu0qkyX2IBljdOxLK5UTKzdkD+j8kLFEP2kN1ELbhP4qEBJj17swycTP9wR4RB+FfjsdeTXonaEOGq8z2CctnczJe87TJ1/GuRj5l/VXiK2ph25El/Axhg5Kv3lHxJw="
910 # DOCKER_PASSWORD
3738 services : docker
3839 install :
3940 - npm install semantic-release
40- semantic-release-docker
4141 @semantic-release/exec
4242 @google/semantic-release-replace-plugin
4343 conventional-changelog-conventionalcommits
You can’t perform that action at this time.
0 commit comments