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

Commit

Permalink
Merge pull request #75 from chuckha/chuckha-patch-1
Browse files Browse the repository at this point in the history
Build container image on all pushes and publish image on push to master
  • Loading branch information
k8s-ci-robot authored Jul 8, 2019
2 parents 5ae65c2 + 206e15a commit 4db6777
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
workflow "New workflow" {
on = "push"
resolves = ["./scripts/publish-manager.sh"]
resolves = ["push"]
}

action "Docker Registry" {
uses = "actions/docker/login@86ff551d26008267bb89ac11198ba7f1d807b699"
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD", "DOCKER_REGISTRY_URL"]
}

action "./scripts/publish-manager.sh" {
uses = "./scripts/publish-manager.sh"
action "build" {
uses = "actions/docker/cli@master"
needs = ["Docker Registry"]
env = {
TAG = "latest"
REGISTRY = "docker.pkg.github.com/kubernetes-sigs/cluster-api-provider-docker"
}
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 = ["master"]
args = "push docker.pkg.github.com/kubernetes-sigs/cluster-api-provider-docker:latest"
}

0 comments on commit 4db6777

Please sign in to comment.