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
a804abd5
Verified
Commit
a804abd5
authored
10 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: gitlab pipeline
parent
522e2a9c
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
+15
-2
15 additions, 2 deletions
nix/scripts/deploy.nix
with
15 additions
and
2 deletions
nix/scripts/deploy.nix
+
15
−
2
View file @
a804abd5
...
...
@@ -36,13 +36,26 @@ in
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: ("Failed to publish: " + $name + " " + $version)}')
${
pkgs
'
.
curl
}
/bin/curl --header "Content-Type: application/json" --request POST \
--data '{"text":"Failed to publish: '$(echo $publishingResult | jq .name)' '$(echo $publishingResult | jq .version)'"}' $MATTERMOST_WEBHOOK
--data "$json" $MATTERMOST_WEBHOOK
exit 1
fi
json=$(jq -n \
--arg name "$(echo $publishingResult | jq -r .name)" \
--arg version "$(echo $publishingResult | jq -r .version)" \
'{icon_emoji: ":monster:", text: ("Deployed: " + $name + " " + $version)}')
${
pkgs
'
.
curl
}
/bin/curl --header "Content-Type: application/json" --request POST \
--data
'{"text":"Deployed: '$(echo $publishingResult | jq .name)' '$(echo $publishingResult | jq .version)'"}'
$MATTERMOST_WEBHOOK
--data
"$json"
$MATTERMOST_WEBHOOK
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