Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GlobeBoard_CICD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Torgrim Thorsen
GlobeBoard_CICD
Commits
da9767a1
Commit
da9767a1
authored
Apr 18, 2024
by
Torgrim
Browse files
Options
Downloads
Patches
Plain Diff
Updated Repo with Pipeline and Coverage Badge in readme.md
parent
0b4760cb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
Go/.env.example
+1
-1
1 addition, 1 deletion
Go/.env.example
Go/Dockerfile-test
+2
-2
2 additions, 2 deletions
Go/Dockerfile-test
Go/docker-compose.yml
+1
-1
1 addition, 1 deletion
Go/docker-compose.yml
readme.md
+12
-7
12 additions, 7 deletions
readme.md
with
18 additions
and
12 deletions
gitlab-ci.yml
→
.
gitlab-ci.yml
+
2
−
1
View file @
da9767a1
...
@@ -24,7 +24,7 @@ Test:
...
@@ -24,7 +24,7 @@ Test:
stage
:
Test
stage
:
Test
before_script
:
before_script
:
-
cd ./Go/
-
cd ./Go/
-
apk add --no-cache curl bash
go
-
apk add --no-cache curl bash
-
curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash > /dev/null 2>&1
-
curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash > /dev/null 2>&1
script
:
script
:
-
docker compose up globeboard-test --exit-code-from globeboard-test
-
docker compose up globeboard-test --exit-code-from globeboard-test
...
@@ -32,6 +32,7 @@ Test:
...
@@ -32,6 +32,7 @@ Test:
after_script
:
after_script
:
-
cd ./Go/
-
cd ./Go/
-
docker compose down globeboard-test
-
docker compose down globeboard-test
coverage
:
'
/coverage:\s+(\d+\.\d+)%\s+of
statements/'
artifacts
:
artifacts
:
when
:
always
when
:
always
paths
:
paths
:
...
...
This diff is collapsed.
Click to expand it.
Go/.env.example
+
1
−
1
View file @
da9767a1
PORT=8080
PORT=8080
TOKEN=your_api_token
TOKEN=your_api_token
SECRETS=path_to_Firebase_credentials_file
FIREBASE_CREDENTIALS_FILE=path_to_Firebase_credentials_file
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Go/Dockerfile-test
+
2
−
2
View file @
da9767a1
...
@@ -13,7 +13,7 @@ COPY go.mod go.sum ./
...
@@ -13,7 +13,7 @@ COPY go.mod go.sum ./
COPY ../ ./
COPY ../ ./
# Build
# Build
RUN CGO_ENABLED=0 GOOS=linux go test -c -installsuffix cgo -o test ./cmd/globeboard
RUN CGO_ENABLED=0 GOOS=linux go test
-cover -coverpkg=./...
-c -installsuffix cgo -o test ./cmd/globeboard
# Use a minimal alpine image for the final build stage.
# Use a minimal alpine image for the final build stage.
FROM golang:1.22-alpine
FROM golang:1.22-alpine
...
...
This diff is collapsed.
Click to expand it.
Go/docker-compose.yml
+
1
−
1
View file @
da9767a1
...
@@ -31,4 +31,4 @@ services:
...
@@ -31,4 +31,4 @@ services:
secrets
:
secrets
:
Firebase
:
Firebase
:
file
:
${SECRETS}
file
:
${FIREBASE_CREDENTIALS_FILE}
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
readme.md
+
12
−
7
View file @
da9767a1
# GlobeBoard Go REST API
[](https://opensource.org/license/mit/)
# GlobeBoard Go REST API


## Introduction
## Introduction
[

](https://git.gvk.idi.ntnu.no/Nintendo_Alex/globeboard_cicd/-/commits/main)
[

](https://git.gvk.idi.ntnu.no/Nintendo_Alex/globeboard_cicd/-/commits/main)
[

](https://opensource.org/license/mit/)
GlobeBoard Go REST API is a webapplication REST API service designed to provide GeoLocational Information.
GlobeBoard Go REST API is a webapplication REST API service designed to provide GeoLocational Information.
## Author
## Author
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment