Skip to content

Commit

Permalink
support prerelease (#779)
Browse files Browse the repository at this point in the history
* Support tags for release candidates

- don't push docker latest
- don't make release latest

* release only the tagged version on prerelease
  • Loading branch information
owenrumney committed Jun 10, 2021
1 parent 695d53b commit fbe4e48
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: tfsec release
on:
push:
tags:
- 'v*.*.*'

jobs:
build:
Expand Down
33 changes: 33 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ archives:
name_template: "{{ .Binary}}-{{ .Os }}-{{ .Arch }}"

release:
prerelease: auto
github:
owner: tfsec
name: tfsec
Expand All @@ -69,6 +70,7 @@ dockers:
- tfsec

dockerfile: Dockerfile
skip_push: auto
image_templates:
- "tfsec/tfsec:latest"
- "tfsec/tfsec:{{ .Tag }}"
Expand All @@ -83,6 +85,7 @@ dockers:
- tfsec

dockerfile: Dockerfile.scratch
skip_push: auto
image_templates:
- "tfsec/tfsec-scratch:latest"
- "tfsec/tfsec-scratch:{{ .Tag }}"
Expand All @@ -94,7 +97,37 @@ dockers:
- tfsec

dockerfile: Dockerfile.ci
skip_push: auto
image_templates:
- "tfsec/tfsec-ci:latest"
- "tfsec/tfsec-ci:{{ .Tag }}"
- "tfsec/tfsec-ci:v{{ .Major }}.{{ .Minor }}"

-
goos: linux
goarch: amd64
ids:
- tfsec

dockerfile: Dockerfile
image_templates:
- "tfsec/tfsec:{{ .Tag }}"
- "tfsec/tfsec-alpine:{{ .Tag }}"
-
goos: linux
goarch: amd64
ids:
- tfsec

dockerfile: Dockerfile.scratch
image_templates:
- "tfsec/tfsec-scratch:{{ .Tag }}"
-
goos: linux
goarch: amd64
ids:
- tfsec

dockerfile: Dockerfile.ci
image_templates:
- "tfsec/tfsec-ci:{{ .Tag }}"

0 comments on commit fbe4e48

Please sign in to comment.