mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-23 00:28:07 +00:00
75fe5d0048
* Fix openshift missing glibc Fixing issues #891 #890 * Update goreleaser Change release to build, no need to release while building (when pushed to main) but only when publishing (release new version) * Update goreleaser version to 0.169.0 * Change from release to build * Try day run on release It used to be released to docker hub each push, the issue was that docker hub had a automation for it, now test if its not releasing every git push.
29 lines
619 B
YAML
29 lines
619 B
YAML
---
|
|
name: Release
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Run unit tests
|
|
run: make tests
|
|
- name: Run integration tests
|
|
run: make integration-tests
|
|
- name: Release
|
|
uses: goreleaser/goreleaser-action@v2
|
|
with:
|
|
version: v0.169.0
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|