mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- push docker images to quay when doing shelf releases
This commit is contained in:
@@ -198,10 +198,12 @@ jobs:
|
|||||||
if: commit_message =~ /\[community release .*\]/
|
if: commit_message =~ /\[community release .*\]/
|
||||||
before_script:
|
before_script:
|
||||||
- source scripts/set-release-variables.sh
|
- source scripts/set-release-variables.sh
|
||||||
|
- bash scripts/check-existing-tags.sh "alfresco/alfresco-governance-share-community"
|
||||||
script:
|
script:
|
||||||
- bash scripts/release.sh "community"
|
- bash scripts/release.sh "community"
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- bash scripts/zip-artifacts-staging.sh "community"
|
- bash scripts/zip-artifacts-staging.sh "community"
|
||||||
|
- bash scripts/pushDockerDigestTag.sh -i quay.io/alfresco/alfresco-governance-repository-community -i quay.io/alfresco/alfresco-governance-share-community -r quay.io -t ${RELEASE_VERSION}
|
||||||
deploy:
|
deploy:
|
||||||
- provider: s3
|
- provider: s3
|
||||||
access_key_id: ${STAGING_AWS_ACCESS_KEY}
|
access_key_id: ${STAGING_AWS_ACCESS_KEY}
|
||||||
@@ -222,10 +224,12 @@ jobs:
|
|||||||
if: commit_message =~ /\[enterprise release .*\]/
|
if: commit_message =~ /\[enterprise release .*\]/
|
||||||
before_script:
|
before_script:
|
||||||
- source scripts/set-release-variables.sh
|
- source scripts/set-release-variables.sh
|
||||||
|
- bash scripts/check-existing-tags.sh "alfresco/alfresco-governance-share-enterprise"
|
||||||
script:
|
script:
|
||||||
- bash scripts/release.sh "enterprise"
|
- bash scripts/release.sh "enterprise"
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- bash scripts/zip-artifacts-staging.sh "enterprise"
|
- bash scripts/zip-artifacts-staging.sh "enterprise"
|
||||||
|
- bash scripts/pushDockerDigestTag.sh -i quay.io/alfresco/alfresco-governance-repository-enterprise -i quay.io/alfresco/alfresco-governance-share-enterprise -r quay.io -t ${RELEASE_VERSION}
|
||||||
deploy:
|
deploy:
|
||||||
- provider: s3
|
- provider: s3
|
||||||
access_key_id: ${STAGING_AWS_ACCESS_KEY}
|
access_key_id: ${STAGING_AWS_ACCESS_KEY}
|
||||||
|
18
scripts/check-existing-tags.sh
Normal file
18
scripts/check-existing-tags.sh
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
alfresco_docker_image=$1
|
||||||
|
# Verify release tags
|
||||||
|
get_tags="$(curl https://hub.docker.com/r/$alfresco_docker_image/tags/ | grep -o '\"result\".*\"]')"
|
||||||
|
arrayTags=($get_tags)
|
||||||
|
|
||||||
|
echo "Existing Tags: $get_tags"
|
||||||
|
|
||||||
|
for tag in "${arrayTags[@]}"
|
||||||
|
do
|
||||||
|
if [[ $tag = ${RELEASE_VERSION} ]]; then
|
||||||
|
echo "Tag ${RELEASE_VERSION} already pushed, release process will interrupt."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "The ${RELEASE_VERSION} tag was not found"
|
Reference in New Issue
Block a user