Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Publish on Github packages
Browse files Browse the repository at this point in the history
Took the decision, because Dockerhub is still not providing 2FA https://t.co/lHNjYKYl0U
  • Loading branch information
elgohr authored Jul 13, 2019
1 parent 2972fbd commit 3ef5505
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
workflow "Build and deploy to Dockerhub" {
on = "push"
workflow "Publish" {
resolves = [
"logout",
]
on = "push"
}

action "login" {
uses = "actions/docker/login@8cdf801b322af5f369e00d85e9cf3a7122f49108"
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@1.0"
args = "lgohr/cf-jetbrains-license-server"
uses = "elgohr/Publish-Docker-Github-Action@master"
args = "docker.pkg.github.com/elgohr/cf-jetbrains-license-server/cf-jetbrains-license-server"
needs = ["login"]
}

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

0 comments on commit 3ef5505

Please sign in to comment.