This commit is contained in:
@@ -38,6 +38,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt)
|
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt)
|
||||||
- echo "Checking if apps/homepage:$IMAGE_TAG exists on remote Docker..."
|
- echo "Checking if apps/homepage:$IMAGE_TAG exists on remote Docker..."
|
||||||
|
- echo "Existing Docker tags for apps/homepage:"
|
||||||
|
- docker images --format "{{.Repository}}:{{.Tag}}" | grep "^apps/homepage" || echo "(none)"
|
||||||
- |
|
- |
|
||||||
if docker image inspect apps/homepage:$IMAGE_TAG > /dev/null 2>&1; then
|
if docker image inspect apps/homepage:$IMAGE_TAG > /dev/null 2>&1; then
|
||||||
echo "✅ Docker image apps/homepage:$IMAGE_TAG already exists — skipping build";
|
echo "✅ Docker image apps/homepage:$IMAGE_TAG already exists — skipping build";
|
||||||
|
|||||||
Reference in New Issue
Block a user