Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
Publish container image on push to master
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Ha <[email protected]>
  • Loading branch information
chuckha committed Jul 8, 2019
1 parent 7a99ffa commit 206e15a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ action "build" {
args = "build -t docker.pkg.github.com/kubernetes-sigs/cluster-api-provider-docker:latest ."
}

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

action "push" {
uses = "actions/docker/cli@master"
needs = ["build"]
needs = ["master"]
args = "push docker.pkg.github.com/kubernetes-sigs/cluster-api-provider-docker:latest"
}

0 comments on commit 206e15a

Please sign in to comment.