Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
9fd8224e
Commit
9fd8224e
authored
May 19, 2021
by
carlosribas
Browse files
Send notification at the beginning and end of image creation
parent
c4bf8667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
.github/workflows/main.yml
.github/workflows/main.yml
+16
-4
No files found.
.github/workflows/main.yml
View file @
9fd8224e
...
...
@@ -4,6 +4,17 @@ name: Building Docker containers
on
:
[
push
,
pull_request
]
jobs
:
initial-notification
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Initial notification
uses
:
rtCamp/action-slack-notify@v2
env
:
SLACK_MESSAGE
:
'
Creating
a
new
image
in
the
Docker
Hub'
SLACK_WEBHOOK
:
${{ secrets.SLACK_WEBHOOK }}
create-docker-tag
:
runs-on
:
ubuntu-latest
steps
:
...
...
@@ -28,13 +39,14 @@ jobs:
if
:
env.BRANCH_NAME != ''
run
:
docker push rnacentral/rnacentral-webcode:${{ env.BRANCH_NAME }}
slack
-notification
:
final
-notification
:
runs-on
:
ubuntu-latest
needs
:
create-docker-tag
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Slack N
otification
-
name
:
Final n
otification
uses
:
rtCamp/action-slack-notify@v2
env
:
SLACK_MESSAGE
:
'
Creating
a
new
image
in
the
Docker
Hub'
SLACK_WEBHOOK
:
${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE
:
'
New
image
created
in
Docker
Hub'
SLACK_WEBHOOK
:
${{ secrets.SLACK_WEBHOOK }}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment