-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from danihodovic/add-taskfile
Add Taskfile to build binary & docker image
- Loading branch information
Showing
3 changed files
with
172 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
# yamllint disable rule:line-length | ||
version: '3' | ||
|
||
tasks: | ||
build-image: | ||
desc: Builds a docker image | ||
cmds: | ||
- docker build . -t danihodovic/celery-exporter | ||
|
||
build-binary: | ||
desc: Creates a cross platform binary | ||
cmds: | ||
- pyinstaller cli.py -y | ||
--onefile | ||
--name celery-exporter | ||
- staticx ./dist/celery-exporter ./dist/celery-exporter | ||
|
||
release: | ||
desc: Creates a Github release | ||
deps: [build] | ||
cmds: | ||
- git tag --delete latest | ||
- git tag -a latest -m 'Latest build' | ||
- > | ||
github-release delete | ||
--user danihodovic | ||
--repo celery-exporter | ||
--tag latest | ||
- > | ||
github-release release | ||
--user danihodovic | ||
--repo celery-exporter | ||
--tag latest | ||
--name celery-exporter | ||
--description "Celery exporter for Prometheus" | ||
- > | ||
github-release upload | ||
--user danihodovic | ||
--repo celery-exporter | ||
--tag latest | ||
--name celery-exporter | ||
--file ./dist/celery-exporter | ||
- docker push danihodovic/celery-exporter |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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