Skip to content

Instantly share code, notes, and snippets.

@marcosnils
Created August 12, 2019 05:45
Show Gist options
  • Save marcosnils/17cc185db01ac1465478476cdf309353 to your computer and use it in GitHub Desktop.
Save marcosnils/17cc185db01ac1465478476cdf309353 to your computer and use it in GitHub Desktop.
Markdium-Take 2, Actions!
action "build api-upload" {
uses = "actions/docker/cli@master"
args = [
"build",
"-t",
"api-upload",
"./services/api-upload",
]
}
action "build api-domains" {
uses = "actions/docker/cli@master"
args = [
"build",
"--build-arg",
"-t",
"api-domains",
"./services/api-domains",
]
}
action "tag filter" {
needs = [
"docker build api-domains",
"docker build api-upload",
]
uses = "actions/bin/filter@master"
args = "tag and not deleted"
}
action "deploy api-domains" {
needs = ["docker push api-domains"]
uses = "docker://zeit/deploy"
}
action "deploy api-upload" {
needs = ["docker push api-upload"]
uses = "docker://zeit/deploy"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment