mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- update the release command to push the docker images to quay and dockerhub
This commit is contained in:
@@ -262,7 +262,7 @@ jobs:
|
||||
stage: Publish
|
||||
if: commit_message =~ /\[community release .*\]/ AND commit_message =~ /\[publish\]/
|
||||
before_script: source scripts/set-release-variables.sh
|
||||
script: travis_retry travis_wait 60 mvn -B -q clean install $MVN_SKIP -PbuildDockerImage -Prelease-community
|
||||
script: skip
|
||||
before_deploy: bash scripts/zip-artifacts-release.sh "community"
|
||||
deploy:
|
||||
- provider: s3
|
||||
@@ -283,7 +283,7 @@ jobs:
|
||||
stage: Publish
|
||||
if: commit_message =~ /\[enterprise release .*\]/ AND commit_message =~ /\[publish\]/
|
||||
before_script: source scripts/set-release-variables.sh
|
||||
script: travis_retry travis_wait 60 mvn -B -q clean install $MVN_SKIP -PbuildDockerImage -Prelease-enterprise
|
||||
script: skip
|
||||
before_deploy: bash scripts/zip-artifacts-release.sh "enterprise"
|
||||
deploy:
|
||||
- provider: s3
|
||||
|
@@ -17,19 +17,19 @@ elif [ $release_type != "community" -a $release_type != "enterprise" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if it's a hotfix version by counting the number of dots in the version number.
|
||||
if [ `echo "${RELEASE_VERSION}" | grep -o "\." | wc -l` == 3 -a ${release_type} == "enterprise" ];
|
||||
then
|
||||
deploymentRepository="hotfix-release"
|
||||
else
|
||||
deploymentRepository="${release_type}-release"
|
||||
fi
|
||||
|
||||
if [ -z ${RELEASE_VERSION} ] || [ -z ${DEVELOPMENT_VERSION} ]; then
|
||||
echo "Please provide a Release and Development verison"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if it's a hotfix version by counting the number of dots in the version number.
|
||||
if [ `echo "${RELEASE_VERSION}" | grep -o "\." | wc -l` == 3 -a ${release_type} == "enterprise" ];
|
||||
then
|
||||
deployment_repository="hotfix-release"
|
||||
else
|
||||
deployment_repository="${release_type}-release"
|
||||
fi
|
||||
|
||||
mvn --batch-mode \
|
||||
-Dusername="${GIT_USERNAME}" \
|
||||
-Dpassword="${GIT_PASSWORD}" \
|
||||
@@ -37,4 +37,5 @@ mvn --batch-mode \
|
||||
-DdevelopmentVersion=${DEVELOPMENT_VERSION} \
|
||||
-DscmCommentPrefix="[maven-release-plugin][skip ci] " \
|
||||
-DskipTests -D${release_type} -DuseReleaseProfile=false \
|
||||
-P${deploymentRepository} release:clean release:prepare release:perform
|
||||
-P${deployment_repository} -Prelease-${release_type} \
|
||||
release:clean release:prepare release:perform
|
Reference in New Issue
Block a user