mirror of https://github.com/aredn/aredn.git
Post a message to slack after a successful nightly build. (#1046)
This uses a script on our build host to do the actual posting. I dont have access to CircleCI to do it from there.
This commit is contained in:
parent
b6dfba160e
commit
dc3aa30eeb
|
@ -241,6 +241,14 @@ jobs:
|
|||
name: Run AFS collector
|
||||
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c '${DOWNLOADS_DOCROOT}/afs/misc/collect.py ${DOWNLOADS_DOCROOT} ${DOWNLOADS_DOCROOT}/afs/www'"
|
||||
|
||||
post_to_slack:
|
||||
machine:
|
||||
image: ubuntu-2004:2023.02.1
|
||||
steps:
|
||||
- run:
|
||||
name: Post to Slack
|
||||
command: ssh ${SSH_USER}@${SSH_HOST} "./post-nightly.sh $(printf '%(%Y%m%d)T')-$(echo ${CIRCLE_SHA1} | cut -c '-7')"
|
||||
|
||||
no_action:
|
||||
machine:
|
||||
image: ubuntu-2004:2023.02.1
|
||||
|
@ -280,6 +288,9 @@ workflows:
|
|||
- save_build_info:
|
||||
requires:
|
||||
- process_artifacts_nightly
|
||||
- post_to_slack:
|
||||
requires:
|
||||
- afs_collector
|
||||
|
||||
manual_build:
|
||||
when:
|
||||
|
|
Loading…
Reference in New Issue