Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows/all.yml #7

Merged
merged 20 commits into from
Sep 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/main.workflow
Original file line number Diff line number Diff line change
@@ -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"
}
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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.
1 change: 0 additions & 1 deletion .travis.yml

This file was deleted.