misc: github actions workflow (wip)

This commit is contained in:
Nicolas Giard 2019-02-02 12:05:03 -05:00 committed by GitHub
parent 38411cbf40
commit 8f573ffd01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

21
.github/main.workflow vendored Normal file
View File

@ -0,0 +1,21 @@
workflow "Docker build" {
on = "push"
resolves = ["Build Docker Image"]
}
action "Filter branch dev" {
uses = "actions/bin/filter@c6471707d308175c57dfe91963406ef205837dbd"
args = "branch dev"
}
action "Docker Registry" {
uses = "actions/docker/login@c08a5fc9e0286844156fefff2c141072048141f6"
needs = ["Filter branch dev"]
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}
action "Build Docker Image" {
uses = "actions/docker/cli@c08a5fc9e0286844156fefff2c141072048141f6"
needs = ["Docker Registry"]
runs = "docker build -f ./dev/build/Dockerfile -t requarks/wiki:dev ."
}