diff --git a/.github/workflows/main.workflow b/.github/workflows/main.workflow new file mode 100644 index 0000000000..d83bbb1c44 --- /dev/null +++ b/.github/workflows/main.workflow @@ -0,0 +1,42 @@ +workflow "Build and Publish" { + on = "push" + resolves = "Publish" +} + +action "Lint" { + uses = "actions/action-builder/shell@master" + runs = "make" + args = "lint" +} + +action "Test" { + uses = "actions/action-builder/shell@master" + runs = "make" + args = "test" +} + +action "Build" { + needs = ["Lint", "Test"] + uses = "actions/action-builder/docker@master" + runs = "make" + args = "build" +} + +action "Publish Filter" { + needs = ["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" +} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..33bcda7b2a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +name: CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Run a one-line script + run: echo Hello, world! + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project.