git: c85542b92acd - main - GCE: Apply public-image label on GCE images

From: Xin LI <delphij_at_FreeBSD.org>
Date: Wed, 10 Jun 2026 02:33:47 UTC
The branch main has been updated by delphij:

URL: https://cgit.FreeBSD.org/src/commit/?id=c85542b92acd286d9e4b034b2ab4d6b6cd46c740

commit c85542b92acd286d9e4b034b2ab4d6b6cd46c740
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-06-10 02:33:03 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-06-10 02:33:12 +0000

    GCE: Apply public-image label on GCE images
    
    Update the GCE image creation process to automatically apply the
    'public-image=true' label when publishing new images. This aligns
    with standard labeling expectations for images hosted in public
    projects.
    
    MFC after:      3 days
---
 release/Makefile.gce | 1 +
 1 file changed, 1 insertion(+)

diff --git a/release/Makefile.gce b/release/Makefile.gce
index 31770bfd5098..f5c657c3c103 100644
--- a/release/Makefile.gce
+++ b/release/Makefile.gce
@@ -85,6 +85,7 @@ gce-do-upload-${_FS}:
 		--architecture=${GCE_ARCH} \
 		--family=${GCE_FAMILY}-${_FS}${GCE_FAMILY_SUFX} ${GCE_LICENSE} \
 		--guest-os-features=GVNIC,UEFI_COMPATIBLE \
+		--labels=public-image=true \
 		--source-uri gs://${GCE_BUCKET}/${GCE_TARGET_${_FS}}.tar.gz
 	touch ${.OBJDIR}/${.TARGET}
 .endfor