forked from GodloveD/salad
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.workflow
28 lines (25 loc) · 839 Bytes
/
main.workflow
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
workflow "Deploy ImageDefinition Schema" {
on = "push"
resolves = ["Extract ImageDefinition Schema"]
}
action "build" {
uses = "actions/docker/cli@master"
args = "build -t vanessa/salad ."
}
action "list" {
needs = ["build"]
uses = "actions/bin/sh@master"
runs = "ls"
args = ["/github/workspace"]
}
action "Extract ImageDefinition Schema" {
needs = ["build", "list"]
uses = "docker://openschemas/extractors:ImageDefinition"
secrets = ["GITHUB_TOKEN"]
env = {
IMAGE_THUMBNAIL = "https://vsoch.github.io/datasets/assets/img/avocado.png"
IMAGE_ABOUT = "Generate ascii art for a fork or spoon, along with a pun."
IMAGE_DESCRIPTION = "alpine base with GoLang and PUNS."
}
args = ["extract", "--name", "vanessa/salad", "--contact", "@vsoch", "--filename", "/github/workspace/Dockerfile", "--deploy"]
}