Add docker deploy
All checks were successful
build docker image / docker-build (push) Successful in 48s
All checks were successful
build docker image / docker-build (push) Successful in 48s
This commit is contained in:
parent
efb5bf0b3b
commit
e0d4758540
5
main.go
5
main.go
@ -8,6 +8,7 @@ import (
|
|||||||
"gitea.stuzer.link/stuzer05/go-firefly3/v2"
|
"gitea.stuzer.link/stuzer05/go-firefly3/v2"
|
||||||
"gitea.stuzer.link/stuzer05/go-monobank"
|
"gitea.stuzer.link/stuzer05/go-monobank"
|
||||||
"github.com/antihax/optional"
|
"github.com/antihax/optional"
|
||||||
|
"github.com/joho/godotenv"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
@ -16,7 +17,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// load .env
|
// load .env
|
||||||
//godotenv.Load(".env")
|
godotenv.Load(".env")
|
||||||
|
|
||||||
// init app
|
// init app
|
||||||
app.Init()
|
app.Init()
|
||||||
@ -77,7 +78,7 @@ func main() {
|
|||||||
// register monobank webhook
|
// register monobank webhook
|
||||||
_, err := app.App().MonobankClient.Api.PersonalWebhookPost(context.Background(), monobank.SetWebHook{WebHookUrl: webhookUrl}, os.Getenv("MONOBANK_TOKEN"))
|
_, err := app.App().MonobankClient.Api.PersonalWebhookPost(context.Background(), monobank.SetWebHook{WebHookUrl: webhookUrl}, os.Getenv("MONOBANK_TOKEN"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln("failed to register monobank webhook")
|
log.Fatalln("failed to register monobank webhook: " + err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
// set webhook
|
// set webhook
|
||||||
|
Loading…
x
Reference in New Issue
Block a user