Merge pull request #13 from unacast/docker-publish

Use github actions to publish to docker hub
This commit is contained in:
Ole Christian Langfjæran
2019-04-29 14:05:39 +02:00
committed by GitHub
3 changed files with 27 additions and 1 deletions

21
.github/main.workflow vendored
View File

@@ -1,6 +1,6 @@
workflow "Build" {
on = "push"
resolves = "Docker build"
resolves = "Publish"
}
action "Lint" {
@@ -21,3 +21,22 @@ action "Docker build" {
runs = "make"
args = "build"
}
action "Publish Filter" {
needs = ["Docker build"]
uses = "actions/bin/filter@master"
args = "branch master"
}
action "Docker Login" {
needs = ["Publish Filter"]
uses = "actions/docker/login@master"
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}
action "Publish" {
needs = ["Docker Login"]
uses = "actions/action-builder/docker@master"
runs = "make"
args = "publish"
}

View File

@@ -22,4 +22,8 @@ test: ## Call the 'test' target on all sub-modules
.PHONY: dev-all
dev-all: lint build test
.PHONY: publish
publish: ## Call the 'publish' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
include help.mk

View File

@@ -1,2 +1,5 @@
# actions
Various Github Actions
# Dockerhub
Images are deployed to https://cloud.docker.com/u/unacast/repository/