terraform-provider-docker/.github/workflows/compile.yaml
Manuel Vogel b1a5b526d5
fix/workflows (#169)
* fix: align gh wf path with go.mod and remove vendor dir

* fix: removes duplicated go version env

* chore: extract docker ce version as env

* chore: removes leading yaml lines
2021-04-08 20:15:06 +09:00

38 lines
927 B
YAML

name: Compile Binaries
on:
push:
branches:
- master
- "release/**"
pull_request:
types: ['opened', 'synchronize']
paths:
- '**.go'
- go.mod
- '.github/workflows/**'
env:
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
jobs:
compile:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Import GPG key
id: import_gpg
uses: paultyng/ghaction-import-gpg@v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --skip-publish --snapshot
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}