mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-24 22:06:43 +01:00
Use proper github path
This commit is contained in:
parent
119bca059f
commit
252b4fbe50
@ -2,7 +2,8 @@ package database
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"github.com/castawaylabs/semaphore/util"
|
|
||||||
|
"github.com/ansible-semaphore/semaphore/util"
|
||||||
_ "github.com/go-sql-driver/mysql" // imports mysql driver
|
_ "github.com/go-sql-driver/mysql" // imports mysql driver
|
||||||
"gopkg.in/gorp.v1"
|
"gopkg.in/gorp.v1"
|
||||||
)
|
)
|
||||||
|
@ -2,9 +2,10 @@ package database
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/castawaylabs/semaphore/util"
|
|
||||||
"gopkg.in/redis.v3"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/ansible-semaphore/semaphore/util"
|
||||||
|
"gopkg.in/redis.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Redis pool
|
// Redis pool
|
||||||
|
9
main.go
9
main.go
@ -2,11 +2,12 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/ansible-semaphore/semaphore/database"
|
||||||
|
"github.com/ansible-semaphore/semaphore/migration"
|
||||||
|
"github.com/ansible-semaphore/semaphore/routes"
|
||||||
|
"github.com/ansible-semaphore/semaphore/util"
|
||||||
"github.com/bugsnag/bugsnag-go"
|
"github.com/bugsnag/bugsnag-go"
|
||||||
"github.com/castawaylabs/semaphore/database"
|
|
||||||
"github.com/castawaylabs/semaphore/migration"
|
|
||||||
"github.com/castawaylabs/semaphore/routes"
|
|
||||||
"github.com/castawaylabs/semaphore/util"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2,10 +2,11 @@ package migration
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/castawaylabs/semaphore/database"
|
|
||||||
"github.com/castawaylabs/semaphore/util"
|
|
||||||
"github.com/go-sql-driver/mysql"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/ansible-semaphore/semaphore/database"
|
||||||
|
"github.com/ansible-semaphore/semaphore/util"
|
||||||
|
"github.com/go-sql-driver/mysql"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (version *DBVersion) CheckExists() (bool, error) {
|
func (version *DBVersion) CheckExists() (bool, error) {
|
||||||
|
@ -2,9 +2,10 @@ package migration
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/castawaylabs/semaphore/util"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/ansible-semaphore/semaphore/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DBVersion struct {
|
type DBVersion struct {
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
- bower
|
- bower
|
||||||
|
|
||||||
# source is copied using ansible.
|
# source is copied using ansible.
|
||||||
#- git: repo=https://github.com/CastawayLabs/semaphore dest={{ homedir }}
|
#- git: repo=https://github.com/ansible-semaphore/semaphore dest={{ homedir }}
|
||||||
- file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
|
- file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
|
||||||
- shell: bower install --allow-root && npm install > {{ homedir }}/somelog.txt
|
- shell: bower install --allow-root && npm install > {{ homedir }}/somelog.txt
|
||||||
args:
|
args:
|
||||||
|
@ -4,15 +4,16 @@ import (
|
|||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/castawaylabs/semaphore/database"
|
|
||||||
"github.com/castawaylabs/semaphore/models"
|
|
||||||
"github.com/castawaylabs/semaphore/util"
|
|
||||||
"github.com/gin-gonic/gin"
|
|
||||||
"gopkg.in/redis.v3"
|
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/ansible-semaphore/semaphore/database"
|
||||||
|
"github.com/ansible-semaphore/semaphore/models"
|
||||||
|
"github.com/ansible-semaphore/semaphore/util"
|
||||||
|
"github.com/gin-gonic/gin"
|
||||||
|
"gopkg.in/redis.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func resetSessionExpiry(sessionID string) {
|
func resetSessionExpiry(sessionID string) {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/castawaylabs/semaphore/util"
|
|
||||||
"github.com/gin-gonic/gin"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/ansible-semaphore/semaphore/util"
|
||||||
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Declare all routes
|
// Declare all routes
|
||||||
|
@ -4,10 +4,11 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/bugsnag/bugsnag-go"
|
"github.com/bugsnag/bugsnag-go"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/mattbaird/gochimp"
|
"github.com/mattbaird/gochimp"
|
||||||
"os"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var mandrillAPI *gochimp.MandrillAPI
|
var mandrillAPI *gochimp.MandrillAPI
|
||||||
@ -93,7 +94,7 @@ func init() {
|
|||||||
ReleaseStage: stage,
|
ReleaseStage: stage,
|
||||||
NotifyReleaseStages: []string{"production"},
|
NotifyReleaseStages: []string{"production"},
|
||||||
AppVersion: Version,
|
AppVersion: Version,
|
||||||
ProjectPackages: []string{"github.com/castawaylabs/semaphore/**"},
|
ProjectPackages: []string{"github.com/ansible-semaphore/semaphore/**"},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user