Skip to content
Snippets Groups Projects
Commit dc731064 authored by Sydney Anne Erickson's avatar Sydney Anne Erickson :chipmunk:
Browse files

Update .gitlab-ci.yml

parent 0a35935e
No related branches found
No related tags found
2 merge requests!60Revert "Fail a test to be sure it works",!27Update .gitlab-ci.yml
...@@ -18,8 +18,9 @@ before_script: ...@@ -18,8 +18,9 @@ before_script:
stages: stages:
- test - test
- build - build
- doc-update - tag
- version_check - version_check
- doc-update
build: build:
stage: build stage: build
...@@ -57,6 +58,15 @@ version_check: ...@@ -57,6 +58,15 @@ version_check:
- CODEVERS=$(cat utils/version.go | grep "const SEMVER =" | cut -d ' ' -f4 | tr -d '"') - CODEVERS=$(cat utils/version.go | grep "const SEMVER =" | cut -d ' ' -f4 | tr -d '"')
- if [[ $GITTAG != $CODEVERS ]]; then echo "VERSION NUMBER BAD $GITTAG != $CODEVER"; exit -1; fi - if [[ $GITTAG != $CODEVERS ]]; then echo "VERSION NUMBER BAD $GITTAG != $CODEVER"; exit -1; fi
tag:
stage: build
image: $DOCKER_IMAGE
script:
- git remote add origin_tags git@$GITLAB_SERVER:elixxir/xxdk-wasm.git || true
- GOOS=js GOARCH=wasm go build -ldflags '-w -s' -o release/xxdk.wasm main.go
- git tag $(sha256sum release/xxdk.wasm | awk '{ print $1 }') -f
- git push origin_tags -f --tags
# This pipeline job will attempt to have pkg.go.dev update docs for xxdk-wasm. # 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 # pkg.go.dev relies on the proxy.golang.org service (go module cache/proxy) to discover versions of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment