Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
publicfiles
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
publicfiles
Commits
c2f87639
Commit
c2f87639
authored
3 years ago
by
Stefan Fritsch
Browse files
Options
Downloads
Patches
Plain Diff
Update build-and-push-resources.yaml, build-and-push-gitlab-ci.yaml
parent
fad227a4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build-and-push-gitlab-ci.yaml
+5
-2
5 additions, 2 deletions
build-and-push-gitlab-ci.yaml
build-and-push-resources.yaml
+26
-15
26 additions, 15 deletions
build-and-push-resources.yaml
with
31 additions
and
17 deletions
build-and-push-gitlab-ci.yaml
+
5
−
2
View file @
c2f87639
...
...
@@ -25,5 +25,8 @@ docker_build:build:
# docker_build:build:
# extends: .docker_build:build_docker
docker_notify:notify_teams
:
extends
:
.docker_notify:notify_teams
docker_notify:notify_teams_success
:
extends
:
.docker_notify:notify_teams_success
docker_notify:notify_teams_failure
:
extends
:
.docker_notify:notify_teams_failure
This diff is collapsed.
Click to expand it.
build-and-push-resources.yaml
+
26
−
15
View file @
c2f87639
...
...
@@ -162,26 +162,23 @@ variables:
# - reports/gl-container-scanning-report.json
# expire_in: 6h
.docker_notify:notify_teams
:
stage
:
docker_notify
image
:
stefanfritsch/baseimage_statup
when
:
always
.docker_notify:common_rules
:
rules
:
-
if
:
'
$TEAMS_WEBHOOK
==
null'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
/skip-build/'
when
:
never
-
if
:
'
$CI_COMMIT_TAG
!=
null'
when
:
on_failure
variables
:
CI_NOTIFICATION_STATE
:
failed
CI_NOTIFICATION_COLOR
:
C0392B
-
if
:
'
$CI_COMMIT_TAG
!=
null'
when
:
on_success
variables
:
CI_NOTIFICATION_STATE
:
successful
CI_NOTIFICATION_COLOR
:
2980B9
.docker_notify:notify_teams_success
:
stage
:
docker_notify
image
:
stefanfritsch/baseimage_statup
variables
:
CI_NOTIFICATION_STATE
:
successful
CI_NOTIFICATION_COLOR
:
2980B9
when
:
always
rules
:
-
!reference
[
.docker_notify
:
common_rules
,
rules
]
script
:
-
echo "CI_COMMIT_TAG is ${CI_COMMIT_TAG}"
-
|
...
...
@@ -217,5 +214,19 @@ variables:
--data-binary "@CI_TEAMS_PAYLOAD.json"
${TEAMS_WEBHOOK}
.docker_notify:notify
:
.docker_notify:notify_teams_failure
:
extends
:
.docker_notify:notify_teams
rules
:
-
!reference
[
.docker_notify
:
common_rules
,
rules
]
-
if
:
'
$CI_COMMIT_TAG
!=
null'
when
:
on_failure
variables
:
CI_NOTIFICATION_STATE
:
failed
CI_NOTIFICATION_COLOR
:
C0392B
.docker_notify:notify_teams
:
extends
:
.docker_notify:notify_teams_failure
.docker_notify:notify
:
extends
:
.docker_notify:notify_teams_failure
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