github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/.drone.yml (about)

     1  kind: pipeline
     2  type: docker
     3  name: default
     4  
     5  steps:
     6  - name: test
     7    image: golang:1.19
     8    commands:
     9    - go test -coverprofile=cover.out ./...
    10    - go tool cover -func=cover.out
    11  
    12  - name: build
    13    image: golang:1.19
    14    commands:
    15    - GOOS=linux   GOARCH=amd64   go build -o release/plugin-linux-amd64
    16    - GOOS=linux   GOARCH=arm64   go build -o release/plugin-linux-arm64
    17    - GOOS=darwin  GOARCH=amd64   go build -o release/plugin-darwin-amd64
    18    - GOOS=darwin  GOARCH=arm64   go build -o release/plugin-darwin-arm64
    19    - GOOS=windows GOARCH=amd64   go build -o release/plugin-windows-amd64.exe
    20  
    21  # uncomment when the `github_token` secret has been added
    22  #
    23  #- name: release
    24  #  image: plugins/github-release
    25  #  settings:
    26  #    files:
    27  #      - release/plugin-linux-amd64
    28  #      - release/plugin-linux-arm64
    29  #      - release/plugin-darwin-amd64
    30  #      - release/plugin-darwin-arm64
    31  #      - release/plugin-windows-amd64.exe
    32  #    api_key:
    33  #      from_secret: github_token
    34  #  when:
    35  #    ref:
    36  #      - refs/tags/*
    37  
    38  trigger:
    39    branch:
    40    - master