-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 1 KB
/
cleanup.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Cleanup
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch: {}
jobs:
images:
runs-on: ubuntu-latest
name: cleanup
permissions:
contents: 'write'
id-token: 'write'
strategy:
fail-fast: false
matrix:
project:
- vjp-cloud-desktops-pr
- vjp-cloud-desktops
steps:
- name: check out code
uses: actions/checkout@v2
- id: 'gcp-auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
with:
create_credentials_file: true
workload_identity_provider: 'projects/76410834219/locations/global/workloadIdentityPools/github-actions/providers/github-actions'
service_account: 'gha-vjftw-cloud-desktops-main@vjp-github-actions.iam.gserviceaccount.com'
- name: run cleanup
run: |-
gcloud config set project "${GCP_PROJECT_ID}"
./pleasew run //build:cleanup
env:
GCP_PROJECT_ID: ${{ matrix.project }}