diff --git a/config.ru b/config.ru index e5b0d72..15b96f6 100644 --- a/config.ru +++ b/config.ru @@ -10,7 +10,7 @@ class SlackDockerApp < Sinatra::Base end post "/*" do docker = JSON.parse(request.body.read) - slack = {text: "[<#{docker['repository']['repo_url']}|#{docker['repository']['repo_name']}>] new image build complete."} + slack = {text: "[<#{docker['repository']['repo_url']}|#{docker['repository']['repo_name']}:#{docker['push_data']['tag']}>] new image build complete."} RestClient.post("https://hooks.slack.com/#{params[:splat].first}", payload: slack.to_json){ |response, request, result, &block| RestClient.post(docker['callback_url'], {state: response.code==200?"success":"error"}.to_json, :content_type => :json) }