Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a GCS deploy workflow #45

Merged
merged 3 commits into from
Mar 5, 2024
Merged

Add a GCS deploy workflow #45

merged 3 commits into from
Mar 5, 2024

Commits on Mar 4, 2024

  1. Add a GCS deploy workflow

    This uploads the repository to GCS and invalidates the CDN cache.
    
    * the workflow is a custom one for root-signing
    * it is called as a reusable workflow from the TUF-on-CI publish workflow
      (so gets automated issue failing on errors)
    
    GCP configuration is mostly hard coded, only service accunt details are
    inputs:
     * service account: same as online signing
     * project: projectsigstore-staging
     * GCS bucket: tuf-root-staging
     * CDN load balancer: tuf-repo-cdn-lb
    
    Signed-off-by: Jussi Kukkonen <[email protected]>
    jku committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    f234dbb View commit details
    Browse the repository at this point in the history
  2. workflows: Add missing arguments to deploy-to-gcs

    Signed-off-by: Jussi Kukkonen <[email protected]>
    jku committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    ca2bcc9 View commit details
    Browse the repository at this point in the history
  3. deploy-to-gcs: Use gcloud storage rsync

    rsync features:
    * exclude list (used for timestamp)
    * --delete-unmatched-destination-objects may be useful in future to
      delete unused metadata files
    
    Note that gcloud rsync CLI is not the same as unix rsync: the SOURCE
    and DEST arguments in particular function completely differently.
    
    Also put some variables into actual named variables.
    
    Signed-off-by: Jussi Kukkonen <[email protected]>
    jku committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    b5afa4e View commit details
    Browse the repository at this point in the history