@@ -10,16 +10,17 @@ execution_time_limit:
10
10
11
11
blocks :
12
12
- name : " Publish official release"
13
+ dependencies : []
13
14
skip :
14
15
# Only run on branches, not PRs.
15
16
when : " branch !~ '.+'"
16
17
task :
17
18
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
23
24
prologue :
24
25
commands :
25
26
# Load the github access secrets. First fix the permissions.
@@ -68,17 +69,44 @@ blocks:
68
69
commands :
69
70
- if [ -z "${SEMAPHORE_GIT_PR_NUMBER}" ]; then make GIT_BRANCH=${SEMAPHORE_GIT_BRANCH} release; fi
70
71
- 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 :
81
84
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
82
93
- sudo apt update
83
94
- 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