Drone is a Container-Native, Continuous Delivery Platform
Go to file
Enver Bisevac 1cf07b6417 initial work on create repository (#27)
* initial work on create repository

* create repository as single method call using client stream

* resources handler and files

* minor fix for wire dep graph
2022-10-11 17:48:04 +02: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
cli initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
client [Harness] Adding JWT/PAT/SAT Support, Harness Clients, Inline User/ServiceAccount Creation, harness Build flag, ... (#22) 2022-09-30 16:22:12 -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 initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
mocks [Harness] Adding JWT/PAT/SAT Support, Harness Clients, Inline User/ServiceAccount Creation, harness Build flag, ... (#22) 2022-09-30 16:22:12 -07:00
resources initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
scripts [MAINT] initial work on local dev env (#13) 2022-09-12 19:09:04 +02:00
types [Embedded] Harness Router, Inline Space Creation, Bootstrap, Harness/Admin User Setup (#28) 2022-10-10 21:32:14 -07:00
version [MAINT] initial config for ci linter (#17) 2022-09-19 18:13:18 +02:00
web Add prototyping for Repos page (#24) 2022-10-03 12:06:27 -07:00
.gitignore initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
.golangci.yml [MAINT] initial config for ci linter (#17) 2022-09-19 18:13:18 +02:00
.harness.env [Embedded] Harness Router, Inline Space Creation, Bootstrap, Harness/Admin User Setup (#28) 2022-10-10 21:32:14 -07:00
.local.env [Embedded] Harness Router, Inline Space Creation, Bootstrap, Harness/Admin User Setup (#28) 2022-10-10 21:32:14 -07:00
CHANGELOG.md
LICENSE.md
Makefile initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
README.md Update README.md 2022-10-03 12:17:43 -07:00
Taskfile.yml Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
go.mod initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
go.sum initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
main.go 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

README.md

CI pipeline CodeQL

Pre-Requisites

Install the latest stable version of Node and Go version 1.19 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