Skip to content

Instantly share code, notes, and snippets.

@stjohnjohnson
Forked from jer/runbuild.yaml
Last active June 21, 2016 16:12
Show Gist options
  • Save stjohnjohnson/edda97f14b1ffc8dc202cebce6e18fbb to your computer and use it in GitHub Desktop.
Save stjohnjohnson/edda97f14b1ffc8dc202cebce6e18fbb to your computer and use it in GitHub Desktop.
apiVersion: batch/v1
kind: Job
metadata:
generateName: sd-
spec:
completions: 1
template:
spec:
restartPolicy: Never
containers:
- name: launcher
image: screwdrivercd/job-tools
imagePullPolicy: Always
volumeMounts:
- mountPath: /opt/screwdriver
name: screwdriver
- name: build
image: node:4
command: [ "/bin/sh", "-c", "sleep 5 && /opt/screwdriver/launch screwdriver-cd api" ]
volumeMounts:
- mountPath: /opt/screwdriver
name: screwdriver
volumes:
- name: screwdriver
emptyDir: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment