@@ -756,6 +756,13 @@ functions:
756756 -v \
757757 --fault revoked
758758
759+ " teardown_docker " :
760+ - command : shell.exec
761+ params :
762+ script : |
763+ # Remove all Docker images
764+ docker rmi -f $(docker images -a -q) &> /dev/null || true
765+
759766pre :
760767 - func : " fetch source"
761768 - func : " prepare resources"
@@ -773,6 +780,7 @@ post:
773780 - func : " upload test results"
774781 - func : " stop mongo-orchestration"
775782 - func : " cleanup"
783+ - func : " teardown_docker"
776784
777785tasks :
778786
@@ -806,6 +814,36 @@ tasks:
806814 genhtml --version || true
807815 valgrind --version || true
808816
817+
818+ - name : " release"
819+ tags : ["release"]
820+ git_tag_only : true
821+ commands :
822+ - command : shell.exec
823+ type : test
824+ params :
825+ working_dir : " src"
826+ script : |
827+ set -o xtrace
828+ ${PREPARE_SHELL}
829+ .evergreen/release.sh
830+ - command : archive.targz_pack
831+ params :
832+ target : " release-files.tgz"
833+ source_dir : " src/dist"
834+ include :
835+ - " *"
836+ - command : s3.put
837+ params :
838+ aws_key : ${aws_key}
839+ aws_secret : ${aws_secret}
840+ local_file : release-files.tgz
841+ remote_file : ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/release/${task_id}-${execution}-release-files.tar.gz
842+ bucket : mciuploads
843+ permissions : public-read
844+ content_type : ${content_type|application/gzip}
845+ display_name : Release files
846+
809847# Standard test tasks {{{
810848
811849 - name : " mockupdb"
@@ -2065,8 +2103,6 @@ buildvariants:
20652103 - " .latest"
20662104 - " .4.4"
20672105 - " .4.2"
2068- variables :
2069- set_xtrace_on : on
20702106
20712107- matrix_name : " tests-python-version-rhel62-test-ssl"
20722108 matrix_spec :
@@ -2519,6 +2555,13 @@ buildvariants:
25192555 - name : " aws-auth-test-4.4"
25202556 - name : " aws-auth-test-latest"
25212557
2558+ - matrix_name : " Release"
2559+ matrix_spec :
2560+ platform : [ubuntu-18.04, windows-64-vsMulti-small]
2561+ display_name : " Release ${platform}"
2562+ tasks :
2563+ - name : " release"
2564+
25222565 # Platform notes
25232566 # i386 builds of OpenSSL or Cyrus SASL are not available
25242567 # Ubuntu16.04 ppc64le is only supported by MongoDB 3.4+
0 commit comments