Some checks failed
ktm-booking-bot/ktm-booking-bot/pipeline/head Something is wrong with the build of this commit
17 lines
303 B
Bash
Executable File
17 lines
303 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Install goswag
|
|
go install github.com/swaggo/swag/cmd/swag@v1.8.4
|
|
|
|
# go to backend directory
|
|
cd backend
|
|
|
|
# rebuild swagger docs
|
|
swag init --dir cmd/server/ --parseDependency
|
|
|
|
# build binary
|
|
go build git.samuelpua.com/telboon/ktm-train-bot/backend/cmd/server
|
|
|
|
# go to base directory
|
|
cd ..
|