DiskHealth/.gitlab-ci.yml

28 lines
480 B
YAML
Raw Normal View History

2022-04-24 22:08:41 +00:00
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*"