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

a better tagging strategy #80

Merged
merged 1 commit into from
Jul 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,31 @@ workflow "New workflow" {
resolves = ["push"]
}

action "master" {
uses = "actions/bin/filter@master"
args = "branch master"
}

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

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

action "master" {
action "tag" {
needs = ["build"]
uses = "actions/bin/filter@master"
args = "branch master"
uses = "actions/docker/tag@master"
args = "base docker.pkg.github.com/kubernetes-sigs/cluster-api-provider-docker/manager"
}

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