Skip to content

Instantly share code, notes, and snippets.

@armenzg
Created March 18, 2020 12:44
Show Gist options
  • Save armenzg/a33f283582f6aaa6c18dc2bb7e692aa7 to your computer and use it in GitHub Desktop.
Save armenzg/a33f283582f6aaa6c18dc2bb7e692aa7 to your computer and use it in GitHub Desktop.
Hook
provisionerId: proj-cia
workerType: ci
schedulerId: '-'
scopes:
- 'assume:hook-id:project-cia/hello-world'
payload:
image: 'ubuntu:latest'
command:
- /bin/bash
- '-c'
- >-
git clone --quiet git@github.com:armenzg/smart-scheduling.git && cd
smart-scheduling/scripts/hello_world && pip install requirements.txt &&
python3 hello_world.py
maxRunTime: 600
metadata:
name: Hook Task
description: Task Description
owner: name@example.com
source: 'https://tc.example.com/hooks'
expires:
$fromNow: 3 months
deadline:
$fromNow: 6 hours
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment