Skip to content

Commit 2c2ff2e

Browse files
committed
ci: slack notifications on release
1 parent 3ed8aea commit 2c2ff2e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.gitlab/ci/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ include:
1010
- project: softwareradiosystems/ci/tools
1111
ref: "8"
1212
file: .gitlab/ci-shared/setup/all.yml
13+
- project: softwareradiosystems/ci/tools
14+
ref: "8"
15+
file: .gitlab/ci-shared/features/all.yml
1316

1417
stages:
1518
- private
@@ -113,6 +116,21 @@ publish main:
113116
optional: false
114117
artifacts: false
115118

119+
notify main published:
120+
extends: .notifier
121+
stage: public
122+
rules:
123+
- if: $ON_TAG
124+
needs:
125+
- job: publish main
126+
optional: false
127+
artifacts: false
128+
variables:
129+
CI_DESCRIPTION: "Public GitHub Updated"
130+
MSG: "main branch has been updated."
131+
SLACK_CHANNEL: $SLACK_CHANNEL_OK
132+
LEVEL: "ok"
133+
116134
release public:
117135
stage: release
118136
rules:
@@ -173,3 +191,19 @@ release public:
173191
-H "Content-Type: application/octet-stream" \
174192
https://uploads.github.com/repos/${PUBLIC_REPO}/releases/${RELEASE_ID}/assets?name=${ARTIFACT} \
175193
--data-binary "@${CI_PROJECT_DIR}/${ARTIFACT}"
194+
195+
notify release published:
196+
extends: .notifier
197+
stage: release
198+
rules:
199+
- if: $ON_TAG
200+
needs:
201+
- job: release public
202+
optional: false
203+
artifacts: false
204+
variables:
205+
CI_DESCRIPTION: "Public Release created on GitHub"
206+
SLACK_CHANNEL: $SLACK_CHANNEL_OK
207+
LEVEL: "ok"
208+
before_script:
209+
- MSG="release_${CI_COMMIT_TAG//./_} created"

0 commit comments

Comments
 (0)