Skip to content

Commit

Permalink
Add image push
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Bloemberg committed Apr 11, 2019
1 parent 3d7a522 commit a2ec993
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ workflow "Release" {
"check",
"test",
"test image",
"test integration"
"test integration",
"push image"
]
}

Expand All @@ -27,13 +28,13 @@ action "test" {

action "build image" {
uses = "actions/docker/cli@master"
args = "build -t dashboard ."
args = "build -t internetstandards/dashboard ."
}

action "test image" {
needs = ["build image"]
uses = "actions/docker/cli@master"
args = "run dashboard help"
args = "run internetstandards/dashboard help"
}

action "compose" {
Expand All @@ -47,3 +48,9 @@ action "test integration" {
uses = "actions/docker/sh@master"
args = "curl -sS http://localhost:8000/|grep MSPAINT"
}

action "push image" {
needs = ["test integration", "check", "test"]
uses = "actions/docker/cli@master"
args = "push internetstandards/dashboard"
}
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ services:
BROKER: redis://broker:6379/0
migrate:
build: .
image: internetstandards/dashboard
restart: on-failure
environment:
SECRET_KEY: '1'
Expand Down

0 comments on commit a2ec993

Please sign in to comment.