Skip to content

Commit

Permalink
Don't auto push on packer build (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel authored Jan 10, 2025
1 parent c246e66 commit 00ee51c
Show file tree
Hide file tree
Showing 28 changed files with 135 additions and 27 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ jobs:
fi
packer validate packer.json
packer build packer.json
docker push registry.cern.ch/alisw/${{ github.event.inputs.image-name }}
5 changes: 4 additions & 1 deletion arm64-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"repository": "{{user `project`}}/arm64-builder",
"tag": "latest"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}
]
]
}
6 changes: 5 additions & 1 deletion centos7-alicerpms/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/centos7",
"tag": "latest"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion cs8-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion curator/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/curator",
"tag": "latest"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion docker-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/docker-builder",
"tag": "latest"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion elasticsearch/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/elasticsearch",
"tag": "{{user `elasticsearch_version`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion jenkins/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `jenkins_version`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion marathon/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/marathon",
"tag": "{{user `marathon_version`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion power8-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
"repository": "{{user `project`}}/power8-builder",
"tag": "latest"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion publisher/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion riemann/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/riemann",
"tag": "latest"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion rsync/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion slc7-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion slc7-daq-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/slc7-daq-builder",
"tag": "latest"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion slc7-devtoolset/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/slc7-devtoolset",
"tag": "latest"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion slc8-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion slc8-gpu-builder/packer.json.old
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion slc9-arm-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion slc9-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}
]
]
}

6 changes: 5 additions & 1 deletion slc9-gpu-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion ubuntu1804-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion ubuntu2004-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion ubuntu2204-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion ubuntu2404-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion vault-gatekeeper/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/vault-gatekeeper",
"tag": "{{user `vault_gatekeeper_version`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion vault/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/vault",
"tag": "{{user `vault_version`}}"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}
6 changes: 5 additions & 1 deletion workqueue-scheduler/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
"repository": "{{user `DOCKER_HUB_REPO`}}/workqueue-scheduler",
"tag": "latest"
},
"docker-push"
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
}

0 comments on commit 00ee51c

Please sign in to comment.