1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-31 18:17:23 +01:00

converted main.workflow to Actions V2 yml files

This commit is contained in:
Amir Raminfar
2019-08-23 13:35:07 -07:00
parent af42d980d0
commit 3bd3dd2d04
3 changed files with 27 additions and 28 deletions

28
.github/main.workflow vendored
View File

@@ -1,28 +0,0 @@
workflow "Build, Test and Release" {
on = "push"
resolves = [
"Release",
]
}
action "go test" {
uses = "./.github/golang/"
}
action "npm test" {
uses = "actions/npm@master"
args = "it"
}
action "Tag" {
uses = "actions/bin/filter@master"
needs = ["go test", "npm test"]
args = "tag"
}
action "Release" {
uses = "./.github/goreleaser/"
needs = ["Tag"]
args = "release"
secrets = ["GITHUB_TOKEN", "DOCKER_USERNAME", "DOCKER_PASSWORD"]
}

26
.github/workflows/push.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
on: push
name: Build, Test and Release
jobs:
npmTest:
name: npm test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: npm test
uses: actions/npm@master
with:
args: it
- name: go test
uses: ./.github/golang/
- name: Tag
uses: actions/bin/filter@master
with:
args: tag
- name: Release
uses: ./.github/goreleaser/
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: release