mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
Test instead of publish
This commit is contained in:
24
.github/main.workflow
vendored
24
.github/main.workflow
vendored
@@ -1,29 +1,11 @@
|
|||||||
workflow "Publish" {
|
workflow "Publish" {
|
||||||
resolves = [
|
resolves = [
|
||||||
"logout",
|
"test",
|
||||||
]
|
]
|
||||||
on = "push"
|
on = "push"
|
||||||
}
|
}
|
||||||
|
|
||||||
action "login" {
|
action "test" {
|
||||||
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/publish-docker-github-action/publish-docker-github-action"
|
|
||||||
needs = ["login"]
|
|
||||||
}
|
|
||||||
|
|
||||||
action "logout" {
|
|
||||||
uses = "actions/docker/cli@master"
|
uses = "actions/docker/cli@master"
|
||||||
args = "logout"
|
args = "build ."
|
||||||
needs = ["publish"]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user