create .gitlab-ci.yml file

This commit is contained in:
Lukas Heiligenbrunner 2022-04-24 22:08:41 +00:00
parent 7499595649
commit e8457a4e0b

27
.gitlab-ci.yml Normal file
View 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*"