Skip to content
Snippets Groups Projects
Commit fe9f3bf1a533 authored by Alexander Trost's avatar Alexander Trost
Browse files

Updated .gitlab-ci.yml

parent 1927cf62c0a6
No related branches found
No related tags found
No related merge requests found
......@@ -36,9 +36,9 @@
script:
# Add here all the dependencies, or use glide/govendor/...
# to get them automatically.
# Better put this in a Makefile
# TODO Better put this in a Makefile soon
- go build -race -ldflags "-X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.Version=$VERSION -X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.Revision=${CI_COMMIT_SHA} -X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.Branch=${CI_COMMIT_REF_NAME} -X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.BuildUser=$(whoami)@$(hostname) -X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.BuildDate=$(date +%Y%m%d-%H:%M:%S) -extldflags '-static'" -o app
artifacts:
paths:
- app
......@@ -40,10 +40,11 @@
- go build -race -ldflags "-X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.Version=$VERSION -X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.Revision=${CI_COMMIT_SHA} -X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.Branch=${CI_COMMIT_REF_NAME} -X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.BuildUser=$(whoami)@$(hostname) -X gitlab.zerbytes.net/${CI_PROJECT_PATH}/vendor/github.com/prometheus/common/version.BuildDate=$(date +%Y%m%d-%H:%M:%S) -extldflags '-static'" -o app
artifacts:
paths:
- app
# example job to upload the built release to an S3 server with mc
#release_upload:
# stage: release
# image: minio/mc
# script:
# - echo "=> We already have artifact sotrage in GitLab! This is for demonstational purposes only."
......@@ -45,9 +46,9 @@
#release_upload:
# stage: release
# image: minio/mc
# script:
# - echo "=> We already have artifact sotrage in GitLab! This is for demonstational purposes only."
# - mc config host add edenmalmoe https://s3.edenmal.moe ${ACCESS_KEY} ${SECRET_KEY} S3v4
# - mc config host add edenmalmoe https://s3.edenmal.net ${ACCESS_KEY} ${SECRET_KEY} S3v4
# - mc mb -p edenmalmoe/build-release-${CI_PROJECT_NAME}/
# - mc cp app edenmalmoe/build-release-${CI_PROJECT_NAME}/
......
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