File tree Expand file tree Collapse file tree 5 files changed +17
-1
lines changed Expand file tree Collapse file tree 5 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 31
31
registry : registry.hub.docker.com
32
32
login : ${{ secrets.DOCKERHUB_USERNAME }}
33
33
password : ${{ secrets.DOCKERHUB_PASSWORD }}
34
+ build-args : |
35
+ TEST_ARG=test_value
36
+ SECOND_ARG=two
34
37
35
38
- uses : nick-fields/assert-action@v1
36
39
with :
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ Build Docker image and push it.
106
106
107
107
| Name | Description | Default | Required |
108
108
|------|-------------|---------|----------|
109
+ | build-args | List of build-time variables | N/A | false |
109
110
| file | Dockerfile name | Dockerfile | false |
110
111
| login | Docker login | | false |
111
112
| organization | Organization | N/A | true |
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ inputs:
13
13
description : ' Dockerfile name'
14
14
required : false
15
15
default : ' Dockerfile'
16
+ build-args :
17
+ description : " List of build-time variables"
18
+ required : false
16
19
organization :
17
20
description : ' Organization'
18
21
required : true
72
75
file : ${{ inputs.workdir }}/${{ inputs.file }}
73
76
pull : true
74
77
push : true
78
+ build-args : ${{ inputs.build-args }}
75
79
cache-from : type=gha
76
80
cache-to : type=gha,mode=max
77
81
tags : ${{ inputs.registry }}/${{ inputs.organization }}/${{ inputs.repository }}:${{ steps.context.outputs.tag }}
Original file line number Diff line number Diff line change 3
3
4
4
| Name | Description | Default | Required |
5
5
| ------| -------------| ---------| ----------|
6
+ | build-args | List of build-time variables | N/A | false |
6
7
| file | Dockerfile name | Dockerfile | false |
7
8
| login | Docker login | | false |
8
9
| organization | Organization | N/A | true |
Original file line number Diff line number Diff line change 1
- FROM nginx:1.23.0-alpine
1
+ FROM nginx:1.23.0-alpine
2
+
3
+ ARG TEST_ARG
4
+ RUN test "test_value" = "$TEST_ARG"
5
+
6
+ ARG SECOND_ARG
7
+ RUN test "two" = "$SECOND_ARG"
8
+
You can’t perform that action at this time.
0 commit comments