Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
pastak committed Nov 6, 2015
1 parent 4bdb8ba commit 48c7642
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion circle.yml
Expand Up @@ -12,5 +12,5 @@ deployment:
branch: release
commands:
- sh ./deb.sh
- bash ./circle_release.sh
- ruby ./circle_release.rb
- bash ./rpm_docker.sh
2 changes: 1 addition & 1 deletion circle_release.rb
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion rpm_docker.sh
Expand Up @@ -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.