-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 936 Bytes
/
release.yaml
File metadata and controls
34 lines (34 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Release binary
on:
push:
tags:
- '*'
jobs:
binary:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
- name: setup golang
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: generate and publish binary
if: startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: latest
args: release --clean
release-docker-build:
needs: binary
uses: dictyBase/workflows/.github/workflows/docker-cross-publish.yaml@develop
with:
repository: ${{ github.repository }}
ref: ${{ github.ref }}
image: github-actions
dockerfile: build/package/Dockerfile
secrets:
dockeruser: ${{ secrets.DOCKERHUB_USER }}
dockerpass: ${{ secrets.DOCKER_PASS }}