File tree 2 files changed +42
-4
lines changed
2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Image CI (Upload Tag)
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+
8
+ jobs :
9
+
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+ - name : Buildx
18
+ uses : docker/setup-buildx-action@v1
19
+
20
+ -
21
+ name : Docker meta
22
+ id : meta
23
+ uses : docker/metadata-action@v4
24
+ with :
25
+ images : amirpourmand/al-folio
26
+
27
+ - name : Login
28
+ uses : docker/login-action@v1
29
+ with :
30
+ username : ${{ secrets.DOCKER_USERNAME }}
31
+ password : ${{ secrets.DOCKER_PASSWORD }}
32
+
33
+ - name : Build and push
34
+ uses : docker/build-push-action@v3
35
+ with :
36
+ context : .
37
+ push : ${{ github.event_name != 'pull_request' }}
38
+ tags : ${{ steps.meta.outputs.tags }}
39
+ labels : ${{ steps.meta.outputs.labels }}
40
+
Original file line number Diff line number Diff line change @@ -3,16 +3,14 @@ name: Docker Image CI
3
3
on :
4
4
push :
5
5
branches : [ master ]
6
- pull_request :
7
- branches : [ master ]
8
6
9
7
jobs :
10
8
11
9
build :
12
10
13
11
runs-on : ubuntu-latest
14
12
if : github.repository_owner == 'alshedivat'
15
-
13
+
16
14
steps :
17
15
- name : Checkout
18
16
uses : actions/checkout@v2
24
22
with :
25
23
username : ${{ secrets.DOCKER_USERNAME }}
26
24
password : ${{ secrets.DOCKER_PASSWORD }}
27
-
25
+
28
26
- name : Build and push
29
27
uses : docker/build-push-action@v2
30
28
with :
You can’t perform that action at this time.
0 commit comments