Skip to content

Commit

Permalink
Update main.workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBrenner authored Jul 31, 2019
0 parents commit f124cc5
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
workflow "Build and Publish" {
on = "push"
resolves = "Publish"
}

action "Lint" {
uses = "actions/action-builder/shell@master"
runs = "make"
args = "lint"
}

action "Test" {
uses = "actions/action-builder/shell@master"
runs = "make"
args = "test"
}

action "Build" {
needs = ["Lint", "Test"]
uses = "actions/action-builder/docker@master"
runs = "make"
args = "build"
}

action "Publish Filter" {
needs = ["Build"]
uses = "actions/bin/filter@master"
args = "branch master"
}

action "Docker Login" {
needs = ["Publish Filter"]
uses = "actions/docker/login@master"
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}

action "Publish" {
needs = ["Docker Login"]
uses = "actions/action-builder/docker@master"
runs = "make"
args = "publish"
}

0 comments on commit f124cc5

Please sign in to comment.