Skip to content

Commit c866636

Browse files
committed
ci: release publish to test branch
1 parent 7aeb8ec commit c866636

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

.gitlab/ci/release.yml

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,15 @@ coverity-agpl:
6868
optional: false
6969
artifacts: false
7070

71-
push:
71+
.publish:
7272
stage: public
73-
rules:
74-
- if: $ON_TAG
75-
when: manual
76-
allow_failure: false
7773
interruptible: false
7874
image: alpine:3.16.0 # sh entrypoint
7975
variables:
8076
GIT_STRATEGY: none
8177
PRIVATE_BRANCH: agpl_main
8278
PUBLIC_REPO: srsran/srsRAN_Project
83-
PUBLIC_BRANCH: main
79+
PUBLIC_BRANCH: ""
8480
before_script:
8581
- apk add git
8682
script:
@@ -91,6 +87,32 @@ push:
9187
# Push code to github main
9288
- git push github_public ${PRIVATE_BRANCH}:${PUBLIC_BRANCH}
9389

90+
publish branch test:
91+
extends: .publish
92+
rules:
93+
- if: $ON_TAG
94+
when: manual
95+
allow_failure: false
96+
variables:
97+
PUBLIC_BRANCH: test
98+
needs:
99+
- job: update agpl main
100+
optional: false
101+
artifacts: false
102+
103+
publish main:
104+
extends: .publish
105+
rules:
106+
- if: $ON_TAG
107+
when: manual
108+
allow_failure: false
109+
variables:
110+
PUBLIC_BRANCH: main
111+
needs:
112+
- job: publish branch test
113+
optional: false
114+
artifacts: false
115+
94116
release public:
95117
stage: release
96118
rules:
@@ -100,7 +122,7 @@ release public:
100122
interruptible: false
101123
image: alpine:3.16.0 # sh entrypoint
102124
needs:
103-
- job: push
125+
- job: publish main
104126
optional: false
105127
artifacts: false
106128
- job: generate testvector tar gz

0 commit comments

Comments
 (0)