mirror of
https://github.com/containers/podman.git
synced 2025-06-26 12:56:45 +08:00
Cirrus: Track VM Image calling GCE project
With multiple `containers` projects updating VM Image metadata, it would be very difficult to discover which Cirrus-CI setup was responsible. Add the GCE project name to the list of metadata labels to update when this container runs. This will give more context as to which images are currently in use. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -32,6 +32,7 @@ ARGS="--update-labels=last-used=$(date +%s)"
|
||||
# optional
|
||||
[[ -z "$BUILDID" ]] || ARGS="$ARGS --update-labels=build-id=$BUILDID"
|
||||
[[ -z "$REPOREF" ]] || ARGS="$ARGS --update-labels=repo-ref=$REPOREF"
|
||||
[[ -z "$GCPPROJECT" ]] || ARGS="$ARGS --update-labels=project=$GCPPROJECT"
|
||||
|
||||
gcloud config set account "$GCPNAME"
|
||||
gcloud config set project "$GCPPROJECT"
|
||||
|
Reference in New Issue
Block a user