Add more advanced release workflow
This commit is contained in:
parent
9415810db1
commit
c02929e9e3
22
.github/workflows/docker.yml
vendored
22
.github/workflows/docker.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: docker
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -6,7 +6,25 @@ on:
|
|||
- v*
|
||||
|
||||
jobs:
|
||||
main:
|
||||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
# This is an example goreleaser.yaml file with some sane defaults.
|
||||
# Make sure to check the documentation at http://goreleaser.com
|
||||
before:
|
||||
hooks:
|
||||
- go mod vendor
|
||||
- ./scripts/vendor-licenses -gen > NOTICE
|
||||
builds:
|
||||
- id: ldap
|
||||
main: main.go
|
||||
binary: ldap
|
||||
goos:
|
||||
- goos:
|
||||
- darwin
|
||||
- freebsd
|
||||
- linux
|
||||
|
@ -37,4 +31,4 @@ changelog:
|
|||
release:
|
||||
github:
|
||||
owner: NetAuth
|
||||
name: ldap
|
||||
name: NetAuth
|
||||
|
|
Loading…
Reference in a new issue