Permalink
Browse files

tweak

  • Loading branch information...
1 parent 4bdb8ba commit 48c7642852a1e784c47fab27304d0685a17559aa @pastak pastak committed Nov 6, 2015
Showing with 3 additions and 3 deletions.
  1. +1 −1 circle.yml
  2. +1 −1 circle_release.rb
  3. +1 −1 rpm_docker.sh
View
@@ -12,5 +12,5 @@ deployment:
branch: release
commands:
- sh ./deb.sh
- - bash ./circle_release.sh
+ - ruby ./circle_release.rb
- bash ./rpm_docker.sh
View
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
require 'json'
-TOKEN = process.env['PACKAGECLOUD_TOKEN']
+TOKEN = ENV['PACKAGECLOUD_TOKEN']
body = `curl -u #{TOKEN}: https://packagecloud.io/api/v1/distributions.json`
json = JSON.parse(body)
View
@@ -2,4 +2,4 @@
sudo service docker start
docker build -t gyazo/build:latest .
-docker run -e PACKAGECLOUD_TOKEN=$PACKAGECLOUD_TOKEN gyazo/build || /root/rpm_release.rb
+docker run -e PACKAGECLOUD_TOKEN=$PACKAGECLOUD_TOKEN gyazo/build ruby /tmp/build/rpm_release.rb

0 comments on commit 48c7642

Please sign in to comment.