Skip to content

Commit bffc72f

Browse files
authored
#7 Separate workflows in two files (#8)
1 parent 147d227 commit bffc72f

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build Docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Build
14+
uses: docker/build-push-action@v3
15+
with:
16+
push: false

.github/workflows/publish.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,10 @@ name: Docker Build And Push To Docker Hub
22

33
on:
44
push:
5-
branches:
6-
- '*'
75
tags:
86
- 'v*.*.*'
97

108
jobs:
11-
build:
12-
name: Build
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Git Checkout Code
16-
uses: actions/checkout@v3
17-
id: git_checkout
18-
19-
- name: Build and push
20-
uses: docker/build-push-action@v3
21-
with:
22-
push: false
23-
249
deployment:
2510
name: Deployment
2611
runs-on: ubuntu-latest
@@ -38,8 +23,7 @@ jobs:
3823
# generate Docker tags based on the following events/attributes
3924
tags: |
4025
type=schedule,pattern={{date 'YYYYMMDD'}}
41-
type=ref,event=branch
42-
type=ref,event=pr
26+
type=ref,event=tag
4327
type=semver,pattern={{version}}
4428
type=semver,pattern={{major}}.{{minor}}
4529
type=semver,pattern={{major}}

0 commit comments

Comments
 (0)