Skip to content

Commit b123152

Browse files
committed
Add docker release actions
1 parent 7f51d99 commit b123152

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
- v*
88

99
jobs:
10+
build:
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Build
17+
run: docker build -t build-test .
18+
1019
unit:
1120
runs-on: ubuntu-18.04
1221
steps:

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
tags:
4+
- v*
5+
6+
name: release
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Build and push
16+
uses: docker/build-push-action@v1
17+
with:
18+
username: winterjung
19+
password: ${{ secrets.DOCKER_PASSWORD }}
20+
repository: winterjung/split
21+
tag_with_ref: true

0 commit comments

Comments
 (0)