-
Notifications
You must be signed in to change notification settings - Fork 68
50 lines (43 loc) · 1.34 KB
/
release.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copied from https://github.com/grafana/tanka/blob/main/.github/workflows/release.yml
# Consider sharing here: https://github.com/grafana/shared-workflows
name: Release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- run: make cross
- id: docker_tag
run: echo "DOCKER_TAG=${GITHUB_REF_NAME#v}" >> "$GITHUB_ENV"
- name: Release
uses: softprops/action-gh-release@v1
with:
body: |
This is release `${{ github.ref_name }}` of Grizzly (`grr`).
## Install instructions
#### Binary:
```bash
# download the binary (adapt os and arch as needed)
$ curl -fSL -o "/usr/local/bin/grr" "https://github.com/grafana/grizzly/releases/download/${{ github.ref_name }}/grr-linux-amd64"
# make it executable
$ chmod a+x "/usr/local/bin/grr"
# have fun :)
$ grr --help
```
#### Docker container:
https://hub.docker.com/r/grafana/grizzly
```bash
$ docker pull grafana/grizzly:${{ env.DOCKER_TAG }}
```
draft: true
files: |
dist/*