Skip to content

Commit

Permalink
Fix evg for cli release
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-cosbuc committed May 1, 2024
1 parent 67b067c commit dcb6a00
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
36 changes: 20 additions & 16 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ variables:
GO111MODULE: "on"
GOROOT: "/opt/golang/go1.21"
functions:

"clone":
- command: subprocess.exec
type: setup
Expand All @@ -23,7 +22,7 @@ functions:
params:
script: |
set -Eeu pipefail
curl -fL "${goreleaser_pro_tar_gz}" --output goreleaser_Linux_x86_64.tar.gz
tar -xf goreleaser_Linux_x86_64.tar.gz
chmod 755 ./goreleaser
Expand All @@ -36,7 +35,7 @@ functions:
- notary_service_url
script: |
set -Eeu pipefail
curl "${notary_service_url}" --output macos-notary.zip
unzip -u macos-notary.zip
chmod 755 ./linux_amd64/macnotary
Expand All @@ -47,6 +46,12 @@ functions:
working_dir: src/github.com/mongodb/mongodb-enterprise-kubernetes/tools/multicluster
include_expansions_in_env:
- GITHUB_TOKEN
- GRS_USERNAME
- GRS_PASSWORD
- PKCS11_URI
- ARTIFACTORY_URL
- ARTIFACTORY_PASSWORD
- SIGNING_IMAGE_URI
- macos_notary_keyid
- macos_notary_secret
- workdir
Expand All @@ -61,11 +66,11 @@ functions:
set -Eeu pipefail
export PATH=$GOROOT/bin:$PATH
${workdir}/goreleaser release --rm-dist
${workdir}/goreleaser release --rm-dist --skip=validate
tasks:
- name: package_goreleaser
git_tag_only: true
#git_tag_only: true
tags: ["packaging"]
commands:
- func: "clone"
Expand All @@ -74,14 +79,13 @@ tasks:
- func: "release"

buildvariants:

# This variant is kept manual for now in order avoid any interfering with the existing release process.
# In the future, it will be called in one of two ways:
# By PCT when a new operator version is released.
# When a new tag is out similarly to github actions.
- name: release_mcli
display_name: Release Go multi-cluster binary
run_on:
- ubuntu2204-small
tasks:
- name: package_goreleaser
# This variant is kept manual for now in order avoid any interfering with the existing release process.
# In the future, it will be called in one of two ways:
# By PCT when a new operator version is released.
# When a new tag is out similarly to github actions.
- name: release_mcli
display_name: Release Go multi-cluster binary
run_on:
- ubuntu2204-small
tasks:
- name: package_goreleaser
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
*.iml
.DS_Store
tools/multicluster/linux_amd64/*
.evergreen.yml
tools/multicluster/linux_amd64/*

0 comments on commit dcb6a00

Please sign in to comment.