From 7860814a6f3820110176b74f7c764743d43f758c Mon Sep 17 00:00:00 2001 From: Simon Li Date: Mon, 10 Jun 2019 22:44:43 +0100 Subject: [PATCH] Workflow: push images and chart --- .github/main.workflow | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/main.workflow diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..94a13d3 --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,33 @@ +workflow "Publish chart" { + on = "push" + resolves = ["manics/chartpress@devel"] +} + +action "Master only" { + uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da" + args = "branch master" +} + +action "Not deleted" { + uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da" + needs = ["Master only"] + args = "not deleted" +} + +action "Wait for Travis" { + uses = "manics/test-actions/wait-for-travis@master" + needs = ["Not deleted"] +} + +action "Docker login" { + uses = "actions/docker/login@8cdf801b322af5f369e00d85e9cf3a7122f49108" + needs = ["Wait for Travis"] + secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"] +} + +action "manics/chartpress@devel" { + uses = "manics/chartpress@devel" + needs = ["Docker login"] + args = "--git-release --tag-latest --push --publish-chart --git-push" + secrets = ["GITHUB_TOKEN"] +}