image: golang:latest

stages:
  - build
  - deploy

compile:
  stage: build
  script:
    - go build -tags osusergo,netgo,seccomp -ldflags '-extldflags=-static' cmd/hepto.go
  artifacts:
    paths:
      - hepto
  variables:
    GOPATH: $CI_PROJECT_DIR/.go
  before_script:
    - mkdir -p .go
  cachew:
    paths:
      - .go/pkg/mod/