create .gitlab-ci.yml file
This commit is contained in:
parent
7499595649
commit
e8457a4e0b
27
.gitlab-ci.yml
Normal file
27
.gitlab-ci.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- compress
|
||||||
|
|
||||||
|
Build_Go:
|
||||||
|
image: golang:latest
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- go build -ldflags="-s -w" -v -o diskhealth
|
||||||
|
artifacts:
|
||||||
|
expire_in: 2 days
|
||||||
|
paths:
|
||||||
|
- "./diskhealth*"
|
||||||
|
|
||||||
|
Compress_upx:
|
||||||
|
image:
|
||||||
|
name: kolaente/upx
|
||||||
|
entrypoint: [""]
|
||||||
|
stage: compress
|
||||||
|
dependencies:
|
||||||
|
- Build_Go
|
||||||
|
script:
|
||||||
|
- upx --ultra-brute -v --no-progress -o diskhealth-upx diskhealth
|
||||||
|
artifacts:
|
||||||
|
expire_in: 2 days
|
||||||
|
paths:
|
||||||
|
- "./diskhealth-upx*"
|
Loading…
Reference in New Issue
Block a user