From f60cbc099c88e49e1a31942038f0aaa1c8b83b62 Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Tue, 20 Sep 2022 14:24:39 -0700 Subject: [PATCH] Add go doc generation to gitlab ci --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5d70c54f..227a5533 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,3 +26,19 @@ go-test: script: - go mod vendor -v - go test ./... -v + +# This pipeline job will attempt to have pkg.go.dev update docs for xxdk-wasm. +# +# pkg.go.dev relies on the proxy.golang.org service (go module cache/proxy) to discover versions of +# Go modules to make docs of. The proxy keeps a list of all known versions of Go modules. The go +# mod proxy does cache pulls for about 30 minutes, so if quickly successive commits are done in +# master/release, this will fail to pull the latest client, and the docs will not update. +trigger-doc-update: + stage: trigger_integration + image: $DOCKER_IMAGE + script: + # We use GOPRIVATE blank because not want to directly pull client, we want to use the public cache. + - GOPRIVATE="" go install gitlab.com/elixxir/xxdk-wasm@$CI_COMMIT_SHA + only: + - release + - master \ No newline at end of file -- GitLab