diff --git a/docs/build.md b/docs/build.md index 9b6c086..63c249c 100644 --- a/docs/build.md +++ b/docs/build.md @@ -6,7 +6,7 @@ go build -o goff github.com/puzzle/goff ``` -### Build Image with dagger +### Build Image with Dagger First set the required env vars. For releasing a new version, GITHUB_REF_TYPE=tag and a valid version must be set GITHUB_REF_NAME=vX.X.X @@ -19,6 +19,14 @@ export REGISTRY_USER=bar export REGISTRY_PASSWORD=foo ``` +or load the default configuration + +```bash +source ./local.env +``` + +Then run the pipeline with + ```bash go run ci/main.go ``` @@ -29,3 +37,7 @@ or dagger run go run ci/main.go ``` +Optionalli can register a Jaeger endpoint wit following env var: +```bash +export OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces +``` diff --git a/local.env b/local.env new file mode 100644 index 0000000..66326f4 --- /dev/null +++ b/local.env @@ -0,0 +1,8 @@ +export GITHUB_ACCESS_TOKEN=topsupersecret +export GITHUB_REF_NAME=dev +export GITHUB_REF_TYPE=branch +export REGISTRY_PASSWORD=bar +export REGISTRY_URL=ttl.sh +export REGISTRY_USER=foo +export OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces +export OTEL_RESOURCE_ATTRIBUTES="commit=SHA111,group=puzzle,project=goff,job=123,pipeline=local" \ No newline at end of file