File tree Expand file tree Collapse file tree 4 files changed +29
-12
lines changed Expand file tree Collapse file tree 4 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 86
86
DOCKER_TAG : ${{ steps.tag.outputs.tag }}
87
87
with :
88
88
targets : app
89
+ load : true
89
90
set : |
90
91
*.output=type=docker,dest=${{ steps.tar.outputs.path }}
91
92
Original file line number Diff line number Diff line change
1
+ name : ' Docker Load image from tar file'
2
+ description : ' Loads a docker image from a tar file'
3
+ inputs :
4
+ version :
5
+ required : true
6
+ description : " The docker image version you want to load"
7
+
8
+ runs :
9
+ using : " composite"
10
+ steps :
11
+ - uses : actions/download-artifact@v4
12
+ with :
13
+ name : ${{ inputs.version }}
14
+ path : /tmp/
15
+
16
+ - name : Load image
17
+ shell : bash
18
+ run : |
19
+ docker load < /tmp/${{ inputs.version }}
20
+ docker image ls
Original file line number Diff line number Diff line change @@ -10,18 +10,22 @@ inputs:
10
10
username :
11
11
required : false
12
12
description : " Username for the registry"
13
+ registry :
14
+ required : false
15
+ description : " The registry to push to"
16
+ default : " ghcr.io"
13
17
14
18
runs :
15
19
using : " composite"
16
20
steps :
17
21
- name : Login to Container Registry
18
22
uses : docker/login-action@v3
19
23
with :
20
- registry : ghcr.io
24
+ registry : ${{ inputs.registry }}
21
25
username : ${{ inputs.username }}
22
26
password : ${{ inputs.password }}
23
27
24
28
- name : Push Image
25
29
shell : bash
26
30
run : |
27
- docker image push ${{ inputs.tag }}
31
+ docker image push ${{ inputs.registry }}/${{ inputs. tag }}
Original file line number Diff line number Diff line change 46
46
steps :
47
47
- uses : actions/checkout@v4
48
48
49
- - uses : actions/download-artifact@v4
49
+ - uses : ./.github/ actions/load
50
50
with :
51
- name : ${{ needs.build.outputs.version }}
52
- path : /tmp/
53
-
54
- - name : Load image
55
- shell : bash
56
- run : |
57
- docker load < /tmp/${{ needs.build.outputs.version }}
58
- docker image ls
59
-
51
+ version : ${{ needs.build.outputs.version }}
60
52
61
53
You can’t perform that action at this time.
0 commit comments