This repository has been archived by the owner on Sep 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from chuckha/chuckha-patch-1
Build container image on all pushes and publish image on push to master
- Loading branch information
Showing
1 changed file
with
17 additions
and
7 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 |
---|---|---|
@@ -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" | ||
} |