Files
alfresco-community-repo/travis/.travis.release-stage.yml
Cezar.Leahu 3e57490e04 APPS-900 APPS-894 APPS-889 Simplify maven POM setup. Reorganize build stages
* remove unnecessary build environment variables
* add a LOG_WARN environment variable - for shorter build commands
* split the `release.sh` script into `community_release.sh` and `enterprise_release.sh`
* remove usage of the `-Dcommunity` build variable where not needed - use/exclude the `-Penterprise` profile explicitly where needed
* modify the Travis `install` phase on some jobs so it runs a basic Java compilation of the project (without docker)
* remove the *internal* profile and renamed the *master* profile into *publish-docker-latest*
* modifiy the profiles for the docker builds so that the same profile handles both community (DockerHub&Quay) and enteprise (only Quay) docker image deploys
* run all the _Unit&Integration Tests_ across community&enteprise in one single job, in parallel with the REST API & UI test suites (APPS-889)
* reorganize the job order so that the *Tests* stage is the first one executed (APPS-894)
* only run the *Maven&Docker deploy* tasks on the *master* & *release* branches after the *Tests* stage (APPS-894)
2021-03-25 13:14:32 +02:00

53 lines
2.3 KiB
YAML

jobs:
include:
- name: "Community Release and Publish to S3 Staging Bucket"
stage: Release
if: commit_message =~ /\[community release .*\]/
before_script:
- source scripts/set-release-variables.sh
- bash scripts/check-existing-tags.sh "alfresco/alfresco-governance-share-community"
script:
- bash scripts/community_release.sh
before_deploy:
- 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:
- provider: s3
access_key_id: ${STAGING_AWS_ACCESS_KEY}
secret_access_key: ${STAGING_AWS_SECRET_KEY}
region: "eu-west-1"
bucket: "alfresco-artefacts-staging"
upload_dir: "community/RM/${RELEASE_VERSION}"
skip_cleanup: true
acl: private
local_dir: artifacts_dir
on:
all_branches: true
after_deploy:
- echo "Finished release and deployed to https://s3.console.aws.amazon.com/s3/buckets/alfresco-artefacts-staging/community/RM/${RELEASE_VERSION}"
- name: "Enterprise Release and Publish to S3 Staging Bucket"
stage: Release
if: commit_message =~ /\[enterprise release .*\]/
before_script:
- source scripts/set-release-variables.sh
script:
- bash scripts/enterprise_release.sh
before_deploy:
- 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:
- provider: s3
access_key_id: ${STAGING_AWS_ACCESS_KEY}
secret_access_key: ${STAGING_AWS_SECRET_KEY}
region: "eu-west-1"
bucket: "alfresco-artefacts-staging"
upload_dir: "enterprise/RM/${RELEASE_VERSION}"
skip_cleanup: true
acl: private
local_dir: artifacts_dir
on:
all_branches: true
after_deploy:
- echo "Finished release and deployed to https://s3.console.aws.amazon.com/s3/buckets/alfresco-artefacts-staging/enterprise/RM/${RELEASE_VERSION}"