-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sending slack notification on deploy #75
base: master
Are you sure you want to change the base?
Conversation
@@ -27,6 +27,11 @@ docker-compose run --rm app sh -c "python manage.py wait_for_database --timeout | |||
# start everything | |||
docker-compose up -d | |||
|
|||
{% if cookiecutter.use_slack_notification %} | |||
# Send slack notification about deploy | |||
docker-compose run --rm app sh -c "python bin/notify.py" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how working with that template looks like in real but deploy-to-aws (which is called by github action) doesn't call deploy (or I don't see something). If so, the problem where to call it stands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What solution do you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -27,6 +27,11 @@ docker-compose run --rm app sh -c "python manage.py wait_for_database --timeout | |||
# start everything | |||
docker-compose up -d | |||
|
|||
{% if cookiecutter.use_slack_notification %} | |||
# Send slack notification about deploy | |||
docker-compose run --rm app sh -c "python bin/notify.py" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What solution do you suggest?
f44ef61
to
3ff6493
Compare
@@ -29,7 +29,8 @@ docker-compose up -d | |||
|
|||
{% if cookiecutter.use_slack_notification %} | |||
# Send slack notification about deploy | |||
docker-compose run --rm app sh -c "python bin/notify.py" | |||
output=`git log --format=format:%H,%s` | |||
docker-compose run --rm app sh -c "python /root/src/bin/notify.py --parse -m \"$output\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately it allows for code injection with backticks, searching how to escape it properly.
No description provided.