Skip to content

Commit 9da45dc

Browse files
authored
Merge pull request #11 from terraform-linters/setup_goreleaser
Setup GoReleaser
2 parents 7c07da5 + d16f2e9 commit 9da45dc

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- '!*'
7+
tags:
8+
- v*.*.*
9+
10+
jobs:
11+
goreleaser:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- name: Set up Go
17+
uses: actions/[email protected]
18+
with:
19+
go-version: 1.15
20+
- name: Run GoReleaser
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
VERSION: v0.143.0
24+
run: curl -sL https://git.io/goreleaser | bash

.goreleaser.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
env:
4+
- CGO_ENABLED=0
5+
builds:
6+
- goos:
7+
- linux
8+
- darwin
9+
- freebsd
10+
- netbsd
11+
- openbsd
12+
- windows
13+
goarch:
14+
- 386
15+
- amd64
16+
- arm
17+
archives:
18+
- id: zip
19+
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
20+
format: zip
21+
files:
22+
- none*
23+
changelog:
24+
skip: true
25+
checksum:
26+
name_template: 'checksums.txt'
27+
release:
28+
github:
29+
owner: terraform-linters
30+
name: tflint-ruleset-google
31+
draft: true
32+
snapshot:
33+
name_template: "{{ .Tag }}-dev"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# TFLint Ruleset for terraform-provider-google
22
[![Build Status](https://github.com/terraform-linters/tflint-ruleset-google/workflows/build/badge.svg?branch=master)](https://github.com/terraform-linters/tflint-ruleset-google/actions)
3+
[![GitHub release](https://img.shields.io/github/release/terraform-linters/tflint-ruleset-google.svg)](https://github.com/terraform-linters/tflint-ruleset-google/releases/latest)
4+
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-blue.svg)](LICENSE)
35

46
TFLint ruleset plugin for Terraform Google Cloud Platform provider
57

0 commit comments

Comments
 (0)