Skip to content

Cache artifacts like dependencies and build outputs to to gcs or azure to improve workflow execution time

License

Notifications You must be signed in to change notification settings

kopax-polyconseil/gcs-or-azure-cache-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Google Cloud Storage or Azure Cache Action

This composite action will decide weither use gcs or azure cache.

  • gcs is used for self-hosted runner
  • azure is used for github runner

Usage

workflow.yml

- name: Cache the node_modules
  id: node-modules-cache
  uses: kopax-polyconseil/gcs-or-azure-cache-action@v3
  with:
    bucket: my-ci-cache
    path: node_modules
    key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
    restore-keys: |
      node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

Inputs

This composite action use under the hood the two following actions:

Read their documentation for all their inputs.

Additionnaly, this GitHub action can control the gcloud auth internaly if you provide the following inputs

Name Type Default Example Description
workload-identity-provider String ø projects/your-project-id/locations/global/workloadIdentityPools/your-identity-pool/providers/your-provider The GCP workload identity provider used for Gcloud auth
service-account String ø github-ci@your-project.iam.gserviceaccount.com The GCP service account used for Gcloud auth

License

This project is MIT licensed.

About

Cache artifacts like dependencies and build outputs to to gcs or azure to improve workflow execution time

Resources

License

Stars

Watchers

Forks

Packages

No packages published