Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nictuku
Last active March 10, 2018 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nictuku/f70ab081fa9cad8096aea3d175b54ef3 to your computer and use it in GitHub Desktop.
Save nictuku/f70ab081fa9cad8096aea3d175b54ef3 to your computer and use it in GitHub Desktop.
#!/bin/bash
test () {
bazel test :all
}
build () {
bazel build :all
}
query() {
bazel query :all | grep deploy.apply | sed -e 's/_deploy.apply//g'
}
deploy() {
bazel run --experimental_platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 $(bazel query \
--noshow_progress \
"filter('_deploy.apply$', ':all')")
}
run() {
bazel run $(bazel query \
--noshow_progress \
"filter('_image.binary$', ':all')")
}
describe() {
bazel run $(bazel query \
--noshow_progress \
"filter('_deploy.describe$', ':all')")
}
$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment