Skip to content

Commit

Permalink
feat(ci): promtail cross platform
Browse files Browse the repository at this point in the history
Build promtail on linux and windows, discard artifacts
  • Loading branch information
sh0rez authored and Ed committed Jun 6, 2019
1 parent 421265c commit ba54f51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ jobs:
- checkout
- setup_remote_docker

- run:
name: Promtail cross platform
command: |
touch loki-build-image/.uptodate &&
make GOOS=linux BUILD_IN_CONTAINER=false cmd/promtail/promtail
rm cmd/promtail/promtail
make GOOS=windows BUILD_IN_CONTAINER=false cmd/promtail/promtail
- run:
name: Build Images
command: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ clean:

assets:
@echo ">> writing assets"
go generate -x -v ./pkg/promtail/server/ui
GOOS=$(shell go env GOHOSTOS) go generate -x -v ./pkg/promtail/server/ui

check_assets: assets
@echo ">> checking that assets are up-to-date"
Expand Down

0 comments on commit ba54f51

Please sign in to comment.