File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -38,19 +38,18 @@ runs:
38
38
run : |
39
39
sudo mkdir -p /etc/docker
40
40
if [ -n "$INSECURE_REG" ] ; then
41
- cat <<EOF | sudo tee /etc/docker/daemon.json
42
- {
43
- "insecure-registries" : [${INSECURE_REG} ],
44
- "registry-mirrors": [${REG_MIRRORS}]
45
- }
46
- EOF
41
+ cat <<EOF | sudo tee /etc/docker/daemon.json
42
+ {
43
+ "insecure-registries" : [${INSECURE_REG} ],
44
+ "registry-mirrors": [${REG_MIRRORS}]
45
+ }
46
+ EOF
47
47
else
48
- if [ -n $INSECURE_REG ] ;
49
- cat <<EOF | sudo tee /etc/docker/daemon.json
50
- {
51
- "registry-mirrors": [${REG_MIRRORS}]
52
- }
53
- EOF
48
+ cat <<EOF | sudo tee /etc/docker/daemon.json
49
+ {
50
+ "registry-mirrors": [${REG_MIRRORS}]
51
+ }
52
+ EOF
54
53
fi
55
54
- name : Reload Docker
56
55
shell : bash
You can’t perform that action at this time.
0 commit comments