mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-04-02 18:43:35 +08:00
Updating main workflow
This commit is contained in:
parent
05eb7c3a78
commit
02dfec60b1
57
.github/main.workflow
vendored
57
.github/main.workflow
vendored
@ -1,8 +1,3 @@
|
||||
workflow "Build and Publish" {
|
||||
resolves = "Docker Publish"
|
||||
on = "push"
|
||||
}
|
||||
|
||||
action "Shell Lint" {
|
||||
uses = "actions/bin/shellcheck@master"
|
||||
args = "entrypoint.sh"
|
||||
@ -67,3 +62,55 @@ action "Test [PR]" {
|
||||
uses = "actions/bin/bats@master"
|
||||
args = "test/*.bats"
|
||||
}
|
||||
|
||||
workflow "Build and Publish" {
|
||||
resolves = ["Test [N]", "Docker Login [N]", "Docker Publish [N]", "Docker Lint [N]"]
|
||||
on = "push"
|
||||
}
|
||||
|
||||
action "Master Branch" {
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "branch master"
|
||||
}
|
||||
|
||||
action "Docker Lint [N]" {
|
||||
uses = "docker://replicated/dockerfilelint"
|
||||
needs = ["Master Branch"]
|
||||
args = "[\"Dockerfile\"]"
|
||||
}
|
||||
|
||||
action "Shell Lint [N]" {
|
||||
uses = "actions/bin/shellcheck@master"
|
||||
needs = ["Master Branch"]
|
||||
args = "entrypoint.sh"
|
||||
}
|
||||
|
||||
action "Test [N]" {
|
||||
uses = "actions/bin/bats@master"
|
||||
needs = ["Master Branch"]
|
||||
args = "test/*.bats"
|
||||
}
|
||||
|
||||
action "Build [N]" {
|
||||
uses = "actions/docker/cli@master"
|
||||
needs = ["Shell Lint [N]", "Test [N]", "Docker Lint [N]"]
|
||||
args = "build -t yarn ."
|
||||
}
|
||||
|
||||
action "Docker Tag [N]" {
|
||||
uses = "actions/docker/tag@master"
|
||||
needs = ["Build [N]"]
|
||||
args = "yarn borales/yarn --no-latest"
|
||||
}
|
||||
|
||||
action "Docker Login [N]" {
|
||||
uses = "actions/docker/login@master"
|
||||
needs = ["Build [N]"]
|
||||
secrets = ["DOCKER_PASSWORD", "DOCKER_USERNAME"]
|
||||
}
|
||||
|
||||
action "Docker Publish [N]" {
|
||||
uses = "actions/docker/cli@master"
|
||||
needs = ["Docker Tag [N]", "Docker Login [N]"]
|
||||
args = "push borales/yarn"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user