Run GoReleaser on tag
This commit is contained in:
parent
cd1fbccc74
commit
6811daad5d
|
@ -0,0 +1,26 @@
|
|||
name: Go
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
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.16
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -1,17 +0,0 @@
|
|||
name: OCI
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Login to Docker Hub
|
||||
run: docker login --username mstg --password ${{secrets.DOCKER_SECRET}}
|
||||
- name: Build the Docker image
|
||||
run: docker build . -t docker.io/mstg/srpmproc:${GITHUB_REF#refs/tags/}
|
||||
- name: Push to Docker Hub
|
||||
run: docker push docker.io/mstg/srpmproc:${GITHUB_REF#refs/tags/}
|
Loading…
Reference in New Issue