Files
terraform-docs/.github/workflows/build.yaml
dependabot[bot] aa89342f7f build: bump golang from 1.15.2-alpine to 1.15.6-alpine (#352)
* build: bump golang from 1.15.2-alpine to 1.15.6-alpine

Bumps golang from 1.15.2-alpine to 1.15.6-alpine.

Signed-off-by: dependabot[bot] <support@github.com>

* update CI to use go1.15.6

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-01-04 15:10:29 -05:00

121 lines
2.8 KiB
YAML

name: build
on:
push:
branches:
- master
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.6
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build binary
run: make build
darwin:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.6
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build binary
env:
GOOS: darwin
GOARCH: amd64
run: make build
freebsd:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.6
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build binary
env:
GOOS: freebsd
GOARCH: amd64
run: make build
openbsd:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.6
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build binary
env:
GOOS: openbsd
GOARCH: amd64
run: make build
windows:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.6
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build binary
env:
GOOS: windows
GOARCH: amd64
run: make build
docker:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build 'dev' Docker image
if: "!contains(github.ref, 'refs/heads/master')"
run: DOCKER_TAG=${{ github.sha }} make docker
- name: Build and push 'edge' Docker image
if: "contains(github.ref, 'refs/heads/master')"
run: |
echo ${REGISTRY_PASSWORD} | docker login -u ${REGISTRY_USERNAME} --password-stdin quay.io
DOCKER_TAG=edge make docker push
env:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}