github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/contrib/imgts/entrypoint.sh (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  source /usr/local/bin/lib_entrypoint.sh
     6  
     7  req_env_var GCPJSON GCPNAME GCPPROJECT IMGNAMES BUILDID REPOREF
     8  
     9  gcloud_init
    10  
    11  ARGS="
    12      --update-labels=last-used=$(date +%s)
    13      --update-labels=build-id=$BUILDID
    14      --update-labels=repo-ref=$REPOREF
    15      --update-labels=project=$GCPPROJECT
    16  "
    17  
    18  for image in $IMGNAMES
    19  do
    20      $GCLOUD compute images update "$image" $ARGS &
    21  done
    22  
    23  wait || echo "Warning: No \$IMGNAMES were specified."