Skip to content

Commit

Permalink
Publish to Github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
elgohr committed Jul 13, 2019
1 parent 4bd4a97 commit f06e8d2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
workflow "Publish" {
resolves = [
"logout",
]
on = "push"
}

action "login" {
uses = "actions/docker/login@master"
secrets = [
"DOCKER_USERNAME",
"DOCKER_PASSWORD",
]
env = {
DOCKER_REGISTRY_URL = "docker.pkg.github.com"
}
}

action "publish" {
uses = "elgohr/Publish-Docker-Github-Action@master"
args = "docker.pkg.github.com/elgohr/concourse-sonarqube-notifier/concourse-sonarqube-notifier"
needs = ["login"]
}

action "logout" {
uses = "actions/docker/cli@master"
args = "logout"
needs = ["publish"]
}

0 comments on commit f06e8d2

Please sign in to comment.