ci: add build

This commit is contained in:
2022-05-05 16:29:29 +03:00
parent 2457ee7483
commit 342bb98d1b
5 changed files with 85 additions and 1 deletions

38
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: goreleaser
on:
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
environment: build
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Login to Docker Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.GEDOCKER_USERNAME }}
password: ${{ secrets.GEDOCKER_PASSWORD }}
- name: Prepare Dependencies
run: |
make dist
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: --parallelism 1 --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}