Skip to content

Instantly share code, notes, and snippets.

@sebgoa
Created July 17, 2017 13:19
Show Gist options
  • Save sebgoa/66ac8e6773643c2ef690f90764a680c6 to your computer and use it in GitHub Desktop.
Save sebgoa/66ac8e6773643c2ef690f90764a680c6 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1
kind: Job
metadata:
name: bazel-build
spec:
template:
metadata:
name: bazel
spec:
restartPolicy: Never
containers:
- image: gcr.io/skippbox/bazel
workingDir: /tmp/bazel/bazel_containers
command: ["bazel", "build", "//nginx:nginx"]
name: bazel
volumeMounts:
- mountPath: /tmp/bazel
name: containers
volumes:
- name: containers
gitRepo:
repository: "https://github.com/bitnami/bazel_containers.git"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment