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" {
|
||||
resolves = [
|
||||
"logout",
|
||||
"test",
|
||||
]
|
||||
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/publish-docker-github-action/publish-docker-github-action"
|
||||
needs = ["login"]
|
||||
}
|
||||
|
||||
action "logout" {
|
||||
action "test" {
|
||||
uses = "actions/docker/cli@master"
|
||||
args = "logout"
|
||||
needs = ["publish"]
|
||||
args = "build ."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user