Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.

Commit

Permalink
Update deploy.workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev authored Feb 15, 2019
1 parent e0e5852 commit 7e9d0f3
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/deploy.workflow
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
workflow "Deploy" {
resolves = ["Build back conteiner", "Build front container"]
resolves = [
"Push front image",
"Push back image",
]
on = "release"
}

Expand All @@ -8,14 +11,26 @@ action "Login to Docker" {
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}

action "Build back conteiner" {
action "Build back image" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
args = "build -t checkmoney-back -f Dockerfile-back ."
args = "build -t igorkamyshev/checkmoney-back -f Dockerfile-back ."
needs = ["Login to Docker"]
}

action "Build front container" {
action "Build front image" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
args = "build -t checkmoney-front -f Dockerfile-front ."
args = "build -t igorkamyshev/checkmoney-front -f Dockerfile-front ."
needs = ["Login to Docker"]
}

action "Push back image" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
args = "push igorkamyshev/checkmoney-back"
needs = ["Build back image"]
}

action "Push front image" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
args = "push igorkamyshev/checkmoney-front"
needs = ["Build front image"]
}

0 comments on commit 7e9d0f3

Please sign in to comment.