File tree Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ inputs:
14
14
required : false
15
15
description : " Whether to start the action by checking out the repository. Set to false if your workflow modifies the file structure before deploying."
16
16
default : ' true'
17
+ buildx_version :
18
+ required : false
19
+ description : " Which version of buildx to use to build and deploy the Docker image."
20
+
17
21
outputs :
18
22
deployment :
19
23
description : " Name of the branch deployment for this PR"
56
60
- name : Set up Docker Buildx
57
61
if : ${{ github.event.pull_request.state != 'closed' }}
58
62
uses : docker/setup-buildx-action@v2
63
+ with :
64
+ ${{ inputs.buildx_version != '' && 'version : ' + inputs.buildx_version || '' }}
59
65
60
66
# See https://github.com/docker/build-push-action/ for more info
61
67
- name: Build and push Docker image
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ inputs:
19
19
required : false
20
20
description : " Whether to start the action by checking out the repository. Set to false if your workflow modifies the file structure before deploying."
21
21
default : ' true'
22
+ buildx_version :
23
+ required : false
24
+ description : " Which version of buildx to use to build and deploy the Docker image."
22
25
23
26
runs :
24
27
using : " composite"
45
48
46
49
- name : Set up Docker Buildx
47
50
uses : docker/setup-buildx-action@v2
51
+ with :
52
+ ${{ inputs.buildx_version != '' && 'version : ' + inputs.buildx_version || '' }}
48
53
49
54
- name: Build and push Docker image
50
55
uses: docker/build-push-action@v4
Original file line number Diff line number Diff line change @@ -20,11 +20,15 @@ inputs:
20
20
required : false
21
21
description : " Whether to start the action by checking out the repository. Set to false if your workflow modifies the file structure before deploying."
22
22
default : ' true'
23
+ buildx_version :
24
+ required : false
25
+ description : " Which version of buildx to use to build and deploy the Docker image."
26
+
23
27
outputs :
24
28
deployment :
25
29
description : " Name of the branch deployment for this PR"
26
30
value : ${{ steps.deploy.outputs.deployment }}
27
-
31
+
28
32
runs :
29
33
using : " composite"
30
34
steps :
73
77
- name : Set up Docker Buildx
74
78
if : ${{ github.event.pull_request.state != 'closed' }}
75
79
uses : docker/setup-buildx-action@v2
80
+ with :
81
+ ${{ inputs.buildx_version != '' && 'version : ' + inputs.buildx_version || '' }}
76
82
77
83
- name: Copy user code template file
78
84
if: ${{ github.event.pull_request.state != ' closed' }}
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ inputs:
24
24
required : false
25
25
description : " Whether to start the action by checking out the repository. Set to false if your workflow modifies the file structure before deploying."
26
26
default : ' true'
27
+ buildx_version :
28
+ required : false
29
+ description : " Which version of buildx to use to build and deploy the Docker image."
27
30
28
31
runs :
29
32
using : " composite"
62
65
63
66
- name : Set up Docker Buildx
64
67
uses : docker/setup-buildx-action@v2
68
+ with :
69
+ ${{ inputs.buildx_version != '' && 'version : ' + inputs.buildx_version || '' }}
65
70
66
71
- name: Copy user code template file
67
72
uses: ./action-repo/actions/utils/copy_template
You can’t perform that action at this time.
0 commit comments