File tree Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,20 @@ inputs:
8
8
user :
9
9
description : " Registry's user"
10
10
required : true
11
+ default : ${{ github.actor }}
11
12
password :
12
13
description : " Registry user's password or token"
13
14
required : true
15
+ default : ${{ secrets.GITHUB_TOKEN }}
14
16
image :
15
17
description : " Docker image name without tag"
16
18
required : true
17
19
tag :
18
20
description : " Docker image tag"
19
21
required : true
20
- build_dev :
21
- description : ' Creates a -dev image too if set to true (default: "false")'
22
- required : true
23
- default : " false"
22
+ build_args :
23
+ description : " Environment variables passed to docker build"
24
+ required : false
24
25
25
26
runs :
26
27
using : " composite"
@@ -41,29 +42,13 @@ runs:
41
42
with :
42
43
images : ${{ inputs.image }}
43
44
44
- - name : Build and push -dev image
45
- if : ${{ inputs.build_dev }} == "true"
46
-
47
- with :
48
- context : ${{ github.workspace }}
49
- platforms : linux/amd64
50
- push : true
51
- build-args : |
52
- DEV=yes
53
- tags : |
54
- ${{ inputs.image }}:${{ inputs.tag }}-dev
55
- labels : ${{ steps.meta.outputs.labels }}
56
- cache-from : type=gha
57
- cache-to : type=gha,mode=max
58
-
59
45
- name : Build and push prod image
60
46
61
47
with :
62
48
context : ${{ github.workspace }}
63
49
platforms : linux/amd64
64
50
push : true
65
- build-args : |
66
- DEV=no
51
+ build-args : ${{ inputs.build_args }}
67
52
tags : |
68
53
${{ inputs.image }}:${{ inputs.tag }}
69
54
labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments