Drone is a Container-Native, Continuous Delivery Platform
Go to file
2022-09-26 10:58:04 -07:00
.githooks [MAINT] initial config for ci linter (#17) 2022-09-19 18:13:18 +02:00
.github/workflows gh token secret for ci pipeline 2022-09-22 19:44:43 +02:00
.vscode Initial commit 2022-08-09 12:37:37 -07:00
cli Principals, ServiceAccounts, Tokens and auth.Sessions (#15) 2022-09-25 23:44:51 -07:00
client Principals, ServiceAccounts, Tokens and auth.Sessions (#15) 2022-09-25 23:44:51 -07:00
contrib Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
docker [MAINT] initial work on local dev env (#13) 2022-09-12 19:09:04 +02:00
internal Fix pingDatabase routine to complete on successful ping (#20) 2022-09-26 10:58:04 -07:00
mocks Principals, ServiceAccounts, Tokens and auth.Sessions (#15) 2022-09-25 23:44:51 -07:00
scripts [MAINT] initial work on local dev env (#13) 2022-09-12 19:09:04 +02:00
types Principals, ServiceAccounts, Tokens and auth.Sessions (#15) 2022-09-25 23:44:51 -07:00
version [MAINT] initial config for ci linter (#17) 2022-09-19 18:13:18 +02:00
web Rename SCM to Gitness 2022-08-29 14:28:46 -07:00
.gitignore [MAINT] initial work on local dev env (#13) 2022-09-12 19:09:04 +02:00
.golangci.yml [MAINT] initial config for ci linter (#17) 2022-09-19 18:13:18 +02:00
.local.env [MAINT] initial work on local dev env (#13) 2022-09-12 19:09:04 +02:00
CHANGELOG.md Initial commit 2022-08-09 12:37:37 -07:00
go.mod Principals, ServiceAccounts, Tokens and auth.Sessions (#15) 2022-09-25 23:44:51 -07:00
go.sum Principals, ServiceAccounts, Tokens and auth.Sessions (#15) 2022-09-25 23:44:51 -07:00
LICENSE.md Initial commit 2022-08-09 12:37:37 -07:00
main.go Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
Makefile makefile build rule modified, ioutil deprecated removed 2022-09-22 16:27:46 +02:00
README.md readme updated 2022-09-13 01:56:42 +02:00
Taskfile.yml Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
wait-for-gitness.sh [MAINT] initial work on local dev env (#13) 2022-09-12 19:09:04 +02:00
yarn.lock Initial commit 2022-08-09 12:37:37 -07:00

CI pipeline CodeQL

Pre-Requisites

Install the latest stable version of Node and Go version 1.17 or higher, and then install the below Go programs. Ensure the GOPATH bin directory is added to your PATH.

$ make all

Build

Build the user interface:

$ pushd web
$ yarn install
$ yarn run build
$ popd

Build the server and command line tools:

$ go generate ./...
$ go build -o release/gitness

Test

Execute the unit tests:

$ make test

Run

This project supports all operating systems and architectures supported by Go. This means you can build and run the system on your machine; docker containers are not required for local development and testing.

Start the server at localhost:3000

$ release/gitness server

User Interface

This project includes a simple user interface for interacting with the system. When you run the application, you can access the user interface by navigating to http://localhost:3000 in your browser.

Swagger

This project includes a swagger specification. When you run the application, you can access the swagger specification by navigating to http://localhost:3000/swagger in your browser.

Command Line

This project includes simple command line tools for interacting with the system. Please remember that you must start the server before you can execute commands.

Register a new user:

$ release/gitness register

Login to the application:

$ release/gitness login

Logout from the application:

$ release/gitness logout

View your account details:

$ release/gitness account

Generate a personal access token:

$ release/gitness token

Create a pipeline:

$ release/gitness pipeline create <name>

List pipelines:

$ release/gitness pipeline ls

Debug and output http responses from the server:

$ DEBUG=true release/gitness pipeline ls

View all commands:

$ release/gitness --help