mirror of
https://github.com/kolaente/Simple-Git-Deploy.git
synced 2023-09-04 21:52:08 +00:00
Added Binaries
This commit is contained in:
parent
7c189010fe
commit
91eaacc556
BIN
compiled-Release/Simple-Git-Deploy_darwin_386
Executable file
BIN
compiled-Release/Simple-Git-Deploy_darwin_386
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_darwin_amd64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_darwin_amd64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_dragonfly_amd64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_dragonfly_amd64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_freebsd_386
Executable file
BIN
compiled-Release/Simple-Git-Deploy_freebsd_386
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_freebsd_amd64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_freebsd_amd64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_freebsd_arm
Executable file
BIN
compiled-Release/Simple-Git-Deploy_freebsd_arm
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_linux_386
Executable file
BIN
compiled-Release/Simple-Git-Deploy_linux_386
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_linux_amd64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_linux_amd64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_linux_arm
Executable file
BIN
compiled-Release/Simple-Git-Deploy_linux_arm
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_linux_arm64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_linux_arm64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_linux_ppc64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_linux_ppc64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_linux_ppc64le
Executable file
BIN
compiled-Release/Simple-Git-Deploy_linux_ppc64le
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_nacl_amd64p32
Executable file
BIN
compiled-Release/Simple-Git-Deploy_nacl_amd64p32
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_nacl_arm
Executable file
BIN
compiled-Release/Simple-Git-Deploy_nacl_arm
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_netbsd_386
Executable file
BIN
compiled-Release/Simple-Git-Deploy_netbsd_386
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_netbsd_amd64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_netbsd_amd64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_netbsd_arm
Executable file
BIN
compiled-Release/Simple-Git-Deploy_netbsd_arm
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_openbsd_386
Executable file
BIN
compiled-Release/Simple-Git-Deploy_openbsd_386
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_openbsd_amd64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_openbsd_amd64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_plan9_386
Executable file
BIN
compiled-Release/Simple-Git-Deploy_plan9_386
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_plan9_amd64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_plan9_amd64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_solaris_amd64
Executable file
BIN
compiled-Release/Simple-Git-Deploy_solaris_amd64
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_windows_386.exe
Executable file
BIN
compiled-Release/Simple-Git-Deploy_windows_386.exe
Executable file
Binary file not shown.
BIN
compiled-Release/Simple-Git-Deploy_windows_amd64.exe
Executable file
BIN
compiled-Release/Simple-Git-Deploy_windows_amd64.exe
Executable file
Binary file not shown.
|
@ -1,12 +1,12 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/go-ini/ini"
|
"github.com/go-ini/ini"
|
||||||
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"io/ioutil"
|
|
||||||
"encoding/json"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
)
|
)
|
||||||
|
@ -62,7 +62,7 @@ func handleHook(w http.ResponseWriter, r *http.Request) {
|
||||||
log.Println("Recived payload, Secret:", hook_data.Secret, ", Ref:", hook_data.Ref)
|
log.Println("Recived payload, Secret:", hook_data.Secret, ", Ref:", hook_data.Ref)
|
||||||
|
|
||||||
if hook_data.Secret == config("secret") {
|
if hook_data.Secret == config("secret") {
|
||||||
if hook_data.Ref == config("branch_name") || hook_data.Ref == "refs/heads/" + config("secret") {
|
if hook_data.Ref == config("branch_name") || hook_data.Ref == "refs/heads/"+config("secret") {
|
||||||
log.Println("Recived corresponding secret: ", hook_data.Secret)
|
log.Println("Recived corresponding secret: ", hook_data.Secret)
|
||||||
log.Println("Starting update...")
|
log.Println("Starting update...")
|
||||||
cmd, err := exec.Command("/bin/bash", "deploy.sh", "-k", config("ssh_key"), "-g", config("git_url"), "-d", config("deploy_dir"), "-c", config("container_name")).Output()
|
cmd, err := exec.Command("/bin/bash", "deploy.sh", "-k", config("ssh_key"), "-g", config("git_url"), "-d", config("deploy_dir"), "-c", config("container_name")).Output()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user