Skip to content

Commit ee5b21c

Browse files
authored
Merge pull request #2 from target/workflow
adding more workflows
2 parents 388c1f6 + cfb8a87 commit ee5b21c

2 files changed

Lines changed: 31 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
docker:
9+
environment: deployment
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Docker Login
13+
uses: docker/login-action@v1
14+
with:
15+
username: ${{ secrets.DOCKERHUB_USERNAME }}
16+
password: ${{ secrets.DOCKERHUB_TOKEN }}
17+
- name: Docker Build and Push
18+
id: docker_build
19+
uses: docker/build-push-action@v2
20+
with:
21+
push: true
22+
tags: |
23+
target/pull-request-code-coverage:lastest
24+
target/pull-request-code-coverage:${{ github.event.release.tag_name }}
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
name: Go
1+
name: pull-request-checks
22

33
on:
4-
push:
5-
branches: [ master ]
64
pull_request:
7-
branches: [ master ]
8-
95
jobs:
10-
116
build:
127
runs-on: ubuntu-latest
138
steps:
@@ -23,3 +18,9 @@ jobs:
2318

2419
- name: Test
2520
run: go test -v ./...
21+
22+
- name: check-format-on-pr
23+
run: make format
24+
25+
- name: check-link-on-pr
26+
run: make lint

0 commit comments

Comments
 (0)