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

Commit

Permalink
Update main.workflow with secrets
Browse files Browse the repository at this point in the history
At the very least the login should succeed
  • Loading branch information
chuckha committed Jul 8, 2019
1 parent 5ae65c2 commit 7a99ffa
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
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 "push" {
uses = "actions/docker/cli@master"
needs = ["build"]
args = "push docker.pkg.github.com/kubernetes-sigs/cluster-api-provider-docker:latest"
}

0 comments on commit 7a99ffa

Please sign in to comment.