mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-22 11:15:19 +01:00
Update dockerimage.yml
This commit is contained in:
parent
38da86fe18
commit
fe091ae1b6
31
.github/main.workflow
vendored
Normal file
31
.github/main.workflow
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
workflow "Build and Publish" {
|
||||
on = "push"
|
||||
resolves = ["Master", "Docker Push"]
|
||||
}
|
||||
|
||||
# Filter for master branch
|
||||
action "Master" {
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "branch master"
|
||||
}
|
||||
|
||||
action "Docker Build" {
|
||||
uses = "actions/docker/cli@fe7ed3ce992160973df86480b83a2f8ed581cd50"
|
||||
needs = ["Master"]
|
||||
args = "build -t pihole-exporter ."
|
||||
}
|
||||
|
||||
action "Docker Registry" {
|
||||
uses = "actions/docker/login@fe7ed3ce992160973df86480b83a2f8ed581cd50"
|
||||
env = {
|
||||
DOCKER_REGISTRY_URL = "docker.pkg.github.com"
|
||||
}
|
||||
secrets = ["DOCKER_PASSWORD", "DOCKER_USERNAME"]
|
||||
needs = ["Docker Build"]
|
||||
}
|
||||
|
||||
action "Docker Push" {
|
||||
uses = "actions/docker/cli@fe7ed3ce992160973df86480b83a2f8ed581cd50"
|
||||
args = "push pihole-exporter"
|
||||
needs = ["Docker Registry"]
|
||||
}
|
Loading…
Reference in New Issue
Block a user