Skip to content
Snippets Groups Projects
Commit 55e33f42 authored by Torgrim's avatar Torgrim
Browse files

Testing Automatic Deployment trough CI/CD

parent b2689f2d
No related branches found
No related tags found
No related merge requests found
Pipeline #26812 passed
......@@ -51,6 +51,6 @@ Deploy:
script:
- docker compose up globeboard -d
after_script:
- docker compose ps
- docker ps
only:
- main
\ No newline at end of file
services:
globeboard:
image: go-globeboard
image: globeboard
build:
context: .
dockerfile: Dockerfile
ports:
- '${PORT}:0.0.0.0:${PORT}'
- '${PORT}:${PORT}'
restart: unless-stopped
environment:
PORT: ${PORT}
......@@ -17,7 +17,7 @@ services:
- Firebase
globeboard-test:
image: go-globeboard-test
image: globeboard-test
build:
context: .
dockerfile: Dockerfile-test
......
......@@ -12,7 +12,11 @@ const (
ISE = "Internal Server Error"
)
// EmptyHandler handles every request to the root path by redirecting to the endpoints.
// EmptyHandler
//
// @Description:
// @param w
// @param r
func EmptyHandler(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/" {
http.NotFound(w, r)
......
......@@ -34,4 +34,5 @@ func deleteUser(w http.ResponseWriter, r *http.Request) {
}
w.WriteHeader(http.StatusNoContent)
log.Print("Successfully Deleted User: ", ID)
}
......@@ -57,6 +57,8 @@ type FeaturesDashboard struct {
TargetCurrencies map[string]float64 `json:"targetCurrencies,omitempty"`
}
// CoordinatesDashboard
// @Description:
type CoordinatesDashboard struct {
Latitude string `json:"latitude,omitempty"`
Longitude string `json:"longitude,omitempty"`
......@@ -64,6 +66,8 @@ type CoordinatesDashboard struct {
// Status structs
// StatusResponse
// @Description:
type StatusResponse struct {
CountriesApi string `json:"countries_api"`
MeteoApi string `json:"meteo_api"`
......@@ -105,6 +109,8 @@ type Footer struct {
Text string `json:"text"`
}
// Embed
// @Description:
type Embed struct {
Title string `json:"title"`
Author Author `json:"author"`
......@@ -115,6 +121,8 @@ type Embed struct {
Footer Footer `json:"footer"`
}
// WebhookPayload
// @Description:
type WebhookPayload struct {
Username string `json:"username"`
AvatarURL string `json:"avatar_url"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment