File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Sync to PROD GCS
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' production/**'
9+ - ' fonts/**'
10+ workflow_dispatch :
11+
12+ permissions : {}
13+
14+ jobs :
15+ sync-to-gcs :
16+ runs-on : ubuntu-latest
17+
18+ permissions :
19+ contents : read
20+ id-token : write
21+
22+ steps :
23+ - name : ' Github Actions Runner'
24+ uses : step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
25+ with :
26+ egress-policy : audit
27+
28+ - name : Checkout code
29+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
30+
31+ - name : Authenticate to Google Cloud
32+ id : auth
33+ uses : step-security/google-github-auth@f0e5c257a9534a30b5df12f43329c1eb7b85a5be # v3.0.0
34+ with :
35+ service_account : " github-chainguard-academy@chainguard-academy.iam.gserviceaccount.com"
36+ workload_identity_provider : " projects/456977358484/locations/global/workloadIdentityPools/chainguard-academy/providers/chainguard-edu"
37+
38+ - name : Setup G Cloud SDK
39+ uses : ' google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db' # v2.0.11
40+
41+ - name : Sync production directory to GCS
42+ run : |
43+ gsutil -m rsync -r -d production/ gs://chainguard-courses-theme/production/
44+
45+ - name : Sync fonts directory to GCS
46+ run : |
47+ gsutil -m rsync -r -d fonts/ gs://chainguard-courses-theme/fonts/
You can’t perform that action at this time.
0 commit comments