Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrydzewski committed May 12, 2017
2 parents ccb28d0 6d49f99 commit 8231756
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 16,7 @@ pipeline:
- ./dist.sh
secrets: [ ssh_key ]
when:
event: push
event: [ push, tag ]

archive:
image: plugins/s3
Expand Down
7 changes: 6 additions & 1 deletion server/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 5,7 @@ import (
"crypto/sha256"
"encoding/json"
"fmt"
"math/rand"
"regexp"
"strconv"
"time"
Expand Down Expand Up @@ -39,6 40,10 @@ import (

var skipRe = regexp.MustCompile(`\[(?i:ci *skip|skip *ci)\]`)

func init() {
rand.Seed(time.Now().UnixNano())
}

func GetQueueInfo(c *gin.Context) {
c.IndentedJSON(200,
Config.Services.Queue.Info(c),
Expand Down Expand Up @@ -492,7 497,7 @@ func (b *builder) Build() ([]*buildItem, error) {
fmt.Sprintf(
"%d_%d",
proc.ID,
time.Now().Unix(),
rand.Int(),
),
),
compiler.WithEnviron(proc.Environ),
Expand Down

0 comments on commit 8231756

Please sign in to comment.