This composite action will decide weither use gcs or azure cache.
- gcs is used for self-hosted runner
- azure is used for github runner
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') }}
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 | ø | [email protected] |
The GCP service account used for Gcloud auth |
This project is MIT licensed.