Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
5060f420
Verified
Commit
5060f420
authored
10 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: working on ci pipeline
parent
888b3aff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nix/scripts/deploy.nix
+3
-3
3 additions, 3 deletions
nix/scripts/deploy.nix
with
3 additions
and
3 deletions
nix/scripts/deploy.nix
+
3
−
3
View file @
5060f420
...
...
@@ -33,14 +33,14 @@ in
echo_hint "Version $(echo $publishingResult | jq .version)"
echo_hint "SHA Sum: $(echo $publishingResult | jq .shasum)"
echo_hint "Files: $(echo $publishingResult | jq .entryCount)"
set -x
if [ "$(echo $publishingResult | jq .id)" == null ] ; then
echo_fail "Failed to publish the project."
json=$(jq -n \
--arg name "$(echo $publishingResult | jq -r .name)" \
--arg version "$(echo $publishingResult | jq -r .version)" \
'{
icon_emoji: ":x:", text: ("F
ailed to publish
:
" + $
name + " " + $version
)}')
'{
text: ("Oh no, we f
ailed to publish
the
" + $
version + " version of " + $name + " :x:"
)}')
${
pkgs
'
.
curl
}
/bin/curl --header "Content-Type: application/json" --request POST \
--data "$json" $MATTERMOST_WEBHOOK
...
...
@@ -52,7 +52,7 @@ set -x
json=$(jq -n \
--arg name "$(echo $publishingResult | jq -r .name)" \
--arg version "$(echo $publishingResult | jq -r .version)" \
'{icon_emoji: ":monster:", text: ("
Deployed: " + $name + " " + $version
)}')
'{icon_emoji: ":monster:", text: ("
We have just launched the " + $version + " version of " + $name + "! Give it a try. :rocket:"
)}')
${
pkgs
'
.
curl
}
/bin/curl --header "Content-Type: application/json" --request POST \
--data "$json" $MATTERMOST_WEBHOOK
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment