一个golang项目典型的gitlab ci文件

image: golang:latest

before_script:
  - export GOPROXY=https://goproxy.io,direct

stages:
    - build
    - release
    - note

build:
    stage: build
    script:
      - go build -o dt-release
    artifacts:
      paths:
        - ./
        
release:
    stage: release
    script:
      - ./dt-release release
    dependencies:
      - build

note:
    stage: note
    script:
      - ./dt-release note
    dependencies:
      - build