Skip to content

Commit ff1ce46

Browse files
authored
Clean up release promotions (#8657)
1 parent 1f5352f commit ff1ce46

File tree

1 file changed

+44
-16
lines changed

1 file changed

+44
-16
lines changed

.semaphore/release/release.yml

+44-16
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ execution_time_limit:
1010

1111
blocks:
1212
- name: "Publish official release"
13+
dependencies: []
1314
skip:
1415
# Only run on branches, not PRs.
1516
when: "branch !~ '.+'"
1617
task:
1718
secrets:
18-
- name: quay-robot-calico+semaphoreci
19-
- name: docker
20-
- name: oss-release-secrets
21-
- name: google-service-account-for-gce
22-
- name: openstack-signing-publishing
19+
- name: quay-robot-calico+semaphoreci
20+
- name: docker
21+
- name: oss-release-secrets
22+
- name: google-service-account-for-gce
23+
- name: openstack-signing-publishing
2324
prologue:
2425
commands:
2526
# Load the github access secrets. First fix the permissions.
@@ -68,17 +69,44 @@ blocks:
6869
commands:
6970
- if [ -z "${SEMAPHORE_GIT_PR_NUMBER}" ]; then make GIT_BRANCH=${SEMAPHORE_GIT_BRANCH} release; fi
7071
- if [ -z "${SEMAPHORE_GIT_PR_NUMBER}" ]; then make GIT_BRANCH=${SEMAPHORE_GIT_BRANCH} release-publish; fi
71-
- name: "Build Openstack Packages"
72-
execution_time_limit:
73-
minutes: 60
74-
env_vars:
75-
- name: SECRET_KEY
76-
value: /home/semaphore/secrets/launchpad-gpg-key-dfox.key
77-
- name: GCLOUD_ARGS
78-
value: --zone us-east1-c --project tigera-wp-tcp-redirect
79-
- name: HOST
80-
value: ubuntu@binaries-projectcalico-org
72+
- name: "Build Openstack Packages"
73+
dependencies: ["Publish official release"]
74+
skip:
75+
when: "branch !~ '.+'"
76+
task:
77+
secrets:
78+
- name: quay-robot-calico+semaphoreci
79+
- name: docker
80+
- name: oss-release-secrets
81+
- name: google-service-account-for-gce
82+
- name: openstack-signing-publishing
83+
prologue:
8184
commands:
85+
# Load the github access secrets. First fix the permissions.
86+
- chmod 0600 /home/semaphore/.keys/git_ssh_rsa
87+
- ssh-add /home/semaphore/.keys/git_ssh_rsa
88+
# Checkout the code and unshallow it.
89+
- checkout
90+
# Free up space on the build machine.
91+
- sudo rm -rf ~/.kiex ~/.phpbrew ~/.rbenv ~/.nvm ~/.kerl ~/.sbt ~/.npm /usr/lib/jvm /opt/firefox* /opt/apache-maven* /opt/scala /usr/local/golang
92+
# Install more tools
8293
- sudo apt update
8394
- sudo apt install -y moreutils patchelf
84-
- make publish-openstack
95+
jobs:
96+
- name: "Build Openstack Packages"
97+
execution_time_limit:
98+
minutes: 60
99+
env_vars:
100+
- name: SECRET_KEY
101+
value: /home/semaphore/secrets/launchpad-gpg-key-dfox.key
102+
- name: GCLOUD_ARGS
103+
value: --zone us-east1-c --project tigera-wp-tcp-redirect
104+
- name: HOST
105+
value: ubuntu@binaries-projectcalico-org
106+
commands:
107+
- if [ -z "${SEMAPHORE_GIT_PR_NUMBER}" ]; then make publish-openstack; fi
108+
epilogue:
109+
always:
110+
commands:
111+
- test -d hack/release/packaging/output && mv -v hack/release/packaging/output hack/release/packaging/openstack
112+
- artifact push workflow hack/release/packaging/openstack

0 commit comments

Comments
 (0)