Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 35 additions & 14 deletions .evergreen-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ variables:
- community_private_preview_pullsecret_dockerconfigjson
- RELEASE_INITIAL_VERSION
- RELEASE_INITIAL_COMMIT_SHA
- RELEASE_OPERATOR_VERSION
- OPERATOR_VERSION
- BUILD_SCENARIO

functions:

Expand Down Expand Up @@ -509,43 +510,63 @@ functions:
params:
shell: bash
working_dir: src/github.com/mongodb/mongodb-kubernetes
include_expansions_in_env:
- version_id
add_to_path:
- ${workdir}/bin
binary: scripts/evergreen/e2e/build_tests_image_ibm.sh

pipeline_migrate_agents:
pipeline:
- command: subprocess.exec
retry_on_failure: false
retry_on_failure: true
type: setup
params:
shell: bash
<<: *e2e_include_expansions_in_env
working_dir: src/github.com/mongodb/mongodb-kubernetes
binary: scripts/release/pipeline_migrate_agent.sh
binary: scripts/release/pipeline.sh
env:
IMAGE_NAME: ${IMAGE_NAME}

pipeline:
pipeline_agent:
- command: subprocess.exec
retry_on_failure: true
type: setup
params:
shell: bash
<<: *e2e_include_expansions_in_env
working_dir: src/github.com/mongodb/mongodb-kubernetes
binary: scripts/release/pipeline_agent.sh
env:
FLAGS: ${FLAGS}

pipeline_ops_manager:
- command: subprocess.exec
retry_on_failure: true
type: setup
params:
shell: bash
<<: *e2e_include_expansions_in_env
working_dir: src/github.com/mongodb/mongodb-kubernetes
binary: scripts/release/pipeline_ops_manager.sh

pipeline_readiness_probe:
- command: subprocess.exec
retry_on_failure: true
type: setup
params:
shell: bash
<<: *e2e_include_expansions_in_env
working_dir: src/github.com/mongodb/mongodb-kubernetes
binary: scripts/dev/run_python.sh scripts/release/pipeline_main.py --parallel ${image_name} ${all_agents} ${build_scenario}
binary: scripts/release/pipeline_readiness_probe.sh

# TODO: this function is very similar to pipeline and it will joined with it in the future
release_operator_pipeline:
pipeline_version_upgrade_hook:
- command: subprocess.exec
retry_on_failure: true
type: setup
params:
shell: bash
<<: *e2e_include_expansions_in_env
working_dir: src/github.com/mongodb/mongodb-kubernetes
# By default, use the git tag that triggered the task which can be overridden with RELEASE_OPERATOR_VERSION
binary: scripts/dev/run_python.sh scripts/release/pipeline_main.py ${image_name} --build-scenario release --version ${RELEASE_OPERATOR_VERSION|*triggered_by_git_tag}
binary: scripts/release/pipeline_version_upgrade_hook.sh

teardown_cloud_qa_all:
- command: shell.exec
Expand Down Expand Up @@ -846,7 +867,7 @@ functions:
- macos_notary_secret
- workdir
- triggered_by_git_tag
- RELEASE_OPERATOR_VERSION
- OPERATOR_VERSION
env:
XDG_CONFIG_HOME: ${go_base_path}${workdir}
GO111MODULE: "on"
Expand All @@ -856,7 +877,7 @@ functions:
# shell.exec EVG Task doesn't have add_to_path, so we need to explicitly add the path export below.
script: |
set -Eeu pipefail
export GORELEASER_CURRENT_TAG=${RELEASE_OPERATOR_VERSION|*triggered_by_git_tag}
export GORELEASER_CURRENT_TAG=${OPERATOR_VERSION|*triggered_by_git_tag}
export PATH=$GOROOT/bin:$PATH
export GITHUB_TOKEN=${generated_token}
${workdir}/goreleaser release --clean
23 changes: 11 additions & 12 deletions .evergreen-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tasks:
- func: build_multi_cluster_binary
- func: pipeline
vars:
image_name: meko-tests
build_scenario: --build-scenario patch
IMAGE_NAME: meko-tests

- name: release_operator
tags: [ "image_release" ]
Expand All @@ -22,9 +21,9 @@ tasks:
- func: clone
- func: setup_building_host
- func: quay_login
- func: release_operator_pipeline
- func: pipeline
vars:
image_name: operator
IMAGE_NAME: operator

# Releases init images to Quay
- name: release_init_appdb
Expand All @@ -34,9 +33,9 @@ tasks:
- func: clone
- func: setup_building_host
- func: quay_login
- func: release_operator_pipeline
- func: pipeline
vars:
image_name: init-appdb
IMAGE_NAME: init-appdb

- name: release_init_database
tags: [ "image_release" ]
Expand All @@ -45,9 +44,9 @@ tasks:
- func: clone
- func: setup_building_host
- func: quay_login
- func: release_operator_pipeline
- func: pipeline
vars:
image_name: init-database
IMAGE_NAME: init-database

- name: release_init_ops_manager
tags: [ "image_release" ]
Expand All @@ -56,9 +55,9 @@ tasks:
- func: clone
- func: setup_building_host
- func: quay_login
- func: release_operator_pipeline
- func: pipeline
vars:
image_name: init-ops-manager
IMAGE_NAME: init-ops-manager

- name: release_database
tags: [ "image_release" ]
Expand All @@ -67,9 +66,9 @@ tasks:
- func: clone
- func: setup_building_host
- func: quay_login
- func: release_operator_pipeline
- func: pipeline
vars:
image_name: database
IMAGE_NAME: database

- name: prepare_and_upload_openshift_bundles
tags: [ "openshift_bundles" ]
Expand Down
Loading