-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
escapace
committed
Mar 30, 2019
1 parent
91bc6b6
commit c2fbd86
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
workflow "New workflow" { | ||
on = "push" | ||
resolves = ["Docker Push A", "Docker Push B"] | ||
} | ||
|
||
action "Filter" { | ||
uses = "actions/bin/filter@3c98a2679187369a2116d4f311568596d3725740" | ||
runs = "tag v*" | ||
} | ||
|
||
action "Docker Login" { | ||
uses = "actions/docker/login@8cdf801b322af5f369e00d85e9cf3a7122f49108" | ||
secrets = ["DOCKER_PASSWORD", "DOCKER_USERNAME"] | ||
needs = ["Filter"] | ||
} | ||
|
||
action "Docker Build" { | ||
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108" | ||
args = "build -t manage ." | ||
needs = ["Filter"] | ||
} | ||
|
||
action "Docker Tag" { | ||
uses = "actions/docker/tag@8cdf801b322af5f369e00d85e9cf3a7122f49108" | ||
needs = ["Docker Build"] | ||
args = "--no-sha --no-ref --env manage escapace/manage" | ||
} | ||
|
||
action "Docker Push A" { | ||
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108" | ||
needs = ["Docker Tag", "Docker Login"] | ||
args = "push escapace/mange:latest" | ||
secrets = ["DOCKER_PASSWORD", "DOCKER_USERNAME"] | ||
} | ||
|
||
action "Docker Push B" { | ||
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108" | ||
needs = ["Docker Tag", "Docker Login"] | ||
secrets = ["DOCKER_PASSWORD", "DOCKER_USERNAME"] | ||
args = "push escapace/mange:${IMAGE_VERSION}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters