-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(packaging): Release pipeline (#840)
This PR sets up an automated release pipeline to cross compile build artifacts and publish them to github. mitchellh/gox is used for building, ghr for publishing
- Loading branch information
Showing
6 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ cmd/loki-canary/loki-canary | |
/loki-canary | ||
dlv | ||
rootfs/ | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
ghr \ | ||
-t "${GITHUB_TOKEN}" \ | ||
-u "${CIRCLE_PROJECT_USERNAME}" \ | ||
-r "${CIRCLE_PROJECT_REPONAME}" \ | ||
-c "${CIRCLE_SHA1}" \ | ||
-b="$(cat ./tools/release-note.md | envsubst)" \ | ||
-delete -draft \ | ||
"${CIRCLE_TAG}" ./dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
This is release `${CIRCLE_TAG}` of Loki. | ||
|
||
### Notable changes: | ||
:warning: **ADD RELEASE NOTES HERE** :warning: | ||
|
||
### Installation: | ||
The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best. | ||
|
||
#### Binary: | ||
```bash | ||
# download a binary (adapt app, os and arch as needed) | ||
$ curl -fSL -o "/usr/local/bin/loki.gz" "https://github.com/grafana/loki/releases/download/${CIRCLE_TAG}/loki-linux-amd64.gz" | ||
$ gunzip "/usr/local/bin/loki.gz" | ||
|
||
# make sure it is executable | ||
$ chmod a+x "/usr/local/bin/loki" | ||
``` | ||
|
||
#### Docker container: | ||
* https://hub.docker.com/r/grafana/loki | ||
* https://hub.docker.com/r/grafana/promtail | ||
```bash | ||
$ docker pull "grafana/loki:${CIRCLE_TAG}" | ||
$ docker pull "grafana/promtail:${CIRCLE_TAG}" | ||
``` |