mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Run GoReleaser on tag
This commit is contained in:
parent
cd1fbccc74
commit
6811daad5d
26
.github/workflows/go.yml
vendored
Normal file
26
.github/workflows/go.yml
vendored
Normal file
@ -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 }}
|
17
.github/workflows/oci.yml
vendored
17
.github/workflows/oci.yml
vendored
@ -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
Block a user