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
2701919f
Verified
Commit
2701919f
authored
10 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: test pipeline
parent
0cff5402
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
nix/scripts/deploy.nix
+14
-11
14 additions, 11 deletions
nix/scripts/deploy.nix
with
14 additions
and
11 deletions
nix/scripts/deploy.nix
+
14
−
11
View file @
2701919f
...
@@ -37,25 +37,28 @@ in
...
@@ -37,25 +37,28 @@ in
if [ "$(echo $publishingResult | jq .id)" == null ] ; then
if [ "$(echo $publishingResult | jq .id)" == null ] ; then
echo_fail "Failed to publish the project."
echo_fail "Failed to publish the project."
json=$(jq -n \
json=$(
${
pkgs
'
.
jq
}
/bin/
jq -n \
--arg name "$(echo $publishingResult | jq -r .name)" \
--arg name "$(echo $publishingResult |
${
pkgs
'
.
jq
}
/bin/
jq -r .name)" \
--arg version "$(echo $publishingResult | jq -r .version)" \
--arg version "$(echo $publishingResult |
${
pkgs
'
.
jq
}
/bin/
jq -r .version)" \
'{text: ("Oh no, we failed to publish the " + $version + " version of " + $name + " :x:")}')
'{text: ("Oh no, we failed to publish the " + $version + " version of " + $name + " :x:")}')
${
pkgs
'
.
curl
}
/bin/curl --header "Content-Type: application/json" --request POST \
${
pkgs
'
.
curl
}
/bin/curl --header "Content-Type: application/json" --request POST \
--data "$json" $MATTERMOST_WEBHOOK
--data "$json" $MATTERMOST_WEBHOOK
exit 1
exit 1
fi
fi
json=$(jq -n \
if [[ -n "$MATTERMOST_WEBHOOK" ]]; then
--arg name "$(echo $publishingResult | jq -r .name)" \
--arg version "$(echo $publishingResult | jq -r .version)" \
json=$(
${
pkgs
'
.
jq
}
/bin/jq -n \
--arg name "$(echo $publishingResult |
${
pkgs
'
.
jq
}
/bin/jq -r .name)" \
--arg version "$(echo $publishingResult |
${
pkgs
'
.
jq
}
/bin/jq -r .version)" \
'{icon_emoji: ":monster:", text: ("We have just launched the " + $version + " version of " + $name + "! Give it a try. :rocket:")}')
'{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 \
${
pkgs
'
.
curl
}
/bin/curl --header "Content-Type: application/json" --request POST \
--data "$json" $MATTERMOST_WEBHOOK
--data "$json" $MATTERMOST_WEBHOOK
fi
echo_ok "Build and publish successful."
echo_ok "Build and publish successful."
''
''
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