28 lines
480 B
YAML
28 lines
480 B
YAML
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*"
|