Skip to content

Commit 00ee51c

Browse files
authored
Don't auto push on packer build (#277)
1 parent c246e66 commit 00ee51c

File tree

28 files changed

+135
-27
lines changed

28 files changed

+135
-27
lines changed

.github/workflows/push-docker-image.yml

+1
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ jobs:
7171
fi
7272
packer validate packer.json
7373
packer build packer.json
74+
docker push registry.cern.ch/alisw/${{ github.event.inputs.image-name }}

arm64-builder/packer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
"repository": "{{user `project`}}/arm64-builder",
3434
"tag": "latest"
3535
},
36-
"docker-push"
36+
{
37+
"type": "shell-local",
38+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
39+
}
3740
]
3841
]
3942
}

centos7-alicerpms/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
"repository": "{{user `DOCKER_HUB_REPO`}}/centos7",
3030
"tag": "latest"
3131
},
32-
"docker-push"
32+
{
33+
"type": "shell-local",
34+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
35+
}
36+
3337
]
3438
]
3539
}

cs8-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
"repository": "{{user `REPO`}}",
3333
"tag": "{{user `TAG`}}"
3434
},
35-
"docker-push"
35+
{
36+
"type": "shell-local",
37+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
38+
}
39+
3640
]
3741
]
3842
}

curator/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
"repository": "{{user `DOCKER_HUB_REPO`}}/curator",
3535
"tag": "latest"
3636
},
37-
"docker-push"
37+
{
38+
"type": "shell-local",
39+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
40+
}
41+
3842
]
3943
]
4044
}

docker-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@
4040
"repository": "{{user `DOCKER_HUB_REPO`}}/docker-builder",
4141
"tag": "latest"
4242
},
43-
"docker-push"
43+
{
44+
"type": "shell-local",
45+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
46+
}
47+
4448
]
4549
]
4650
}

elasticsearch/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
"repository": "{{user `DOCKER_HUB_REPO`}}/elasticsearch",
2727
"tag": "{{user `elasticsearch_version`}}"
2828
},
29-
"docker-push"
29+
{
30+
"type": "shell-local",
31+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
32+
}
33+
3034
]
3135
]
3236
}

jenkins/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
"repository": "{{user `REPO`}}",
3434
"tag": "{{user `jenkins_version`}}"
3535
},
36-
"docker-push"
36+
{
37+
"type": "shell-local",
38+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
39+
}
40+
3741
]
3842
]
3943
}

marathon/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
"repository": "{{user `DOCKER_HUB_REPO`}}/marathon",
4040
"tag": "{{user `marathon_version`}}"
4141
},
42-
"docker-push"
42+
{
43+
"type": "shell-local",
44+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
45+
}
46+
4347
]
4448
]
4549
}

power8-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
"repository": "{{user `project`}}/power8-builder",
3535
"tag": "latest"
3636
},
37-
"docker-push"
37+
{
38+
"type": "shell-local",
39+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
40+
}
41+
3842
]
3943
]
4044
}

publisher/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
"repository": "{{user `REPO`}}",
2929
"tag": "{{user `TAG`}}"
3030
},
31-
"docker-push"
31+
{
32+
"type": "shell-local",
33+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
34+
}
35+
3236
]
3337
]
3438
}

riemann/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
"repository": "{{user `DOCKER_HUB_REPO`}}/riemann",
4040
"tag": "latest"
4141
},
42-
"docker-push"
42+
{
43+
"type": "shell-local",
44+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
45+
}
46+
4347
]
4448
]
4549
}

rsync/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
"repository": "{{user `REPO`}}",
3333
"tag": "{{user `TAG`}}"
3434
},
35-
"docker-push"
35+
{
36+
"type": "shell-local",
37+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
38+
}
39+
3640
]
3741
]
3842
}

slc7-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
"repository": "{{user `REPO`}}",
3535
"tag": "{{user `TAG`}}"
3636
},
37-
"docker-push"
37+
{
38+
"type": "shell-local",
39+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
40+
}
41+
3842
]
3943
]
4044
}

slc7-daq-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
"repository": "{{user `DOCKER_HUB_REPO`}}/slc7-daq-builder",
2424
"tag": "latest"
2525
},
26-
"docker-push"
26+
{
27+
"type": "shell-local",
28+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
29+
}
30+
2731
]
2832
]
2933
}

slc7-devtoolset/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
"repository": "{{user `DOCKER_HUB_REPO`}}/slc7-devtoolset",
2929
"tag": "latest"
3030
},
31-
"docker-push"
31+
{
32+
"type": "shell-local",
33+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
34+
}
35+
3236
]
3337
]
3438
}

slc8-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
"repository": "{{user `REPO`}}",
3333
"tag": "{{user `TAG`}}"
3434
},
35-
"docker-push"
35+
{
36+
"type": "shell-local",
37+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
38+
}
39+
3640
]
3741
]
3842
}

slc8-gpu-builder/packer.json.old

+5-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
"repository": "{{user `REPO`}}",
5858
"tag": "{{user `TAG`}}"
5959
},
60-
"docker-push"
60+
{
61+
"type": "shell-local",
62+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
63+
}
64+
6165
]
6266
]
6367
}

slc9-arm-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
"repository": "{{user `REPO`}}",
3434
"tag": "{{user `TAG`}}"
3535
},
36-
"docker-push"
36+
{
37+
"type": "shell-local",
38+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
39+
}
40+
3741
]
3842
]
3943
}

slc9-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
"repository": "{{user `REPO`}}",
3434
"tag": "{{user `TAG`}}"
3535
},
36-
"docker-push"
36+
{
37+
"type": "shell-local",
38+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
39+
}
3740
]
3841
]
3942
}
43+

slc9-gpu-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@
5252
"repository": "{{user `REPO`}}",
5353
"tag": "{{user `TAG`}}"
5454
},
55-
"docker-push"
55+
{
56+
"type": "shell-local",
57+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
58+
}
59+
5660
]
5761
]
5862
}

ubuntu1804-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
"repository": "{{user `REPO`}}",
2525
"tag": "{{user `TAG`}}"
2626
},
27-
"docker-push"
27+
{
28+
"type": "shell-local",
29+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
30+
}
31+
2832
]
2933
]
3034
}

ubuntu2004-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
"repository": "{{user `REPO`}}",
2525
"tag": "{{user `TAG`}}"
2626
},
27-
"docker-push"
27+
{
28+
"type": "shell-local",
29+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
30+
}
31+
2832
]
2933
]
3034
}

ubuntu2204-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
"repository": "{{user `REPO`}}",
2525
"tag": "{{user `TAG`}}"
2626
},
27-
"docker-push"
27+
{
28+
"type": "shell-local",
29+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
30+
}
31+
2832
]
2933
]
3034
}

ubuntu2404-builder/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
"repository": "{{user `REPO`}}",
2525
"tag": "{{user `TAG`}}"
2626
},
27-
"docker-push"
27+
{
28+
"type": "shell-local",
29+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
30+
}
31+
2832
]
2933
]
3034
}

vault-gatekeeper/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
"repository": "{{user `DOCKER_HUB_REPO`}}/vault-gatekeeper",
2828
"tag": "{{user `vault_gatekeeper_version`}}"
2929
},
30-
"docker-push"
30+
{
31+
"type": "shell-local",
32+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
33+
}
34+
3135
]
3236
]
3337
}

vault/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
"repository": "{{user `DOCKER_HUB_REPO`}}/vault",
3737
"tag": "{{user `vault_version`}}"
3838
},
39-
"docker-push"
39+
{
40+
"type": "shell-local",
41+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
42+
}
43+
4044
]
4145
]
4246
}

workqueue-scheduler/packer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"repository": "{{user `DOCKER_HUB_REPO`}}/workqueue-scheduler",
2626
"tag": "latest"
2727
},
28-
"docker-push"
28+
{
29+
"type": "shell-local",
30+
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
31+
}
32+
2933
]
3034
]
3135
}

0 commit comments

Comments
 (0)