-
Notifications
You must be signed in to change notification settings - Fork 4
113 lines (90 loc) · 2.9 KB
/
run_ib.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Run cloud-cleaner Image Builder
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *' # every hour
jobs:
ib-aws-438:
name: Image Builder AWS 438 account
runs-on: ubuntu-latest
container:
image: quay.io/osbuild/cloud-tools:latest
env:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_438_IB }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_438_IB }}
AWS_BUCKET: ${{ secrets.AWS_BUCKET_438_IB }}
steps:
- name: Install dependencies
run: dnf install -y jq
- name: Check out the repo
uses: actions/checkout@v3
- name: Run the cleaning script
run: ./aws.sh
ib-azure:
name: Image Builder Azure account
runs-on: ubuntu-latest
container:
image: quay.io/osbuild/cloud-tools:latest
env:
AZURE_CLIENT_ID: "${{ secrets.AZURE_CLIENT_ID_IB }}"
AZURE_CLIENT_SECRET: "${{ secrets.AZURE_CLIENT_SECRET_IB }}"
AZURE_TENANT_ID: "${{ secrets.AZURE_TENANT_ID_IB }}"
steps:
- name: Install dependencies
run: dnf install -y jq
- name: Check out the repo
uses: actions/checkout@v3
- name: Run the cleaning script
run: ./azure.sh
ib-gcp:
name: Image Builder GCP account
runs-on: ubuntu-latest
container:
image: quay.io/osbuild/cloud-tools:latest
env:
GOOGLE_APPLICATION_CREDENTIALS: "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_IB }}"
steps:
- name: Install dependencies
run: dnf install -y jq
- name: Check out the repo
uses: actions/checkout@v3
- name: Run the cleaning script
run: |
echo "${GOOGLE_APPLICATION_CREDENTIALS}" > /tmp/gcp_creds
export GOOGLE_APPLICATION_CREDENTIALS="/tmp/gcp_creds"
./gcp.sh
ib-oci:
name: Image Builder OCI account
runs-on: ubuntu-latest
container:
image: quay.io/osbuild/cloud-tools:latest
env:
OCI_CONFIG_DATA: "${{ secrets.OCI_CONFIG_DATA }}"
OCI_PRIV_KEY_DATA: "${{ secrets.OCI_PRIV_KEY_DATA }}"
OCI_COMPARTMENT: "${{ secrets.OCI_COMPARTMENT }}"
steps:
- name: Install dependencies
run: dnf install -y jq
- name: Check out the repo
uses: actions/checkout@v3
- name: Run the cleaning script
run: ./oci.sh
ib-openshift:
# always skip b/c OpenShift is not reachable outside VPN, see
# https://gitlab.cee.redhat.com/osbuild/vcenter-cleaner
if: ${{ ! always() }}
name: Image Builder OpenShift
runs-on: ubuntu-latest
steps:
- name: This workflow is internal only
run: echo
ib-vmware:
# always skip b/c GOVMOMI_URL_IB is not reachable outside VPN, see
# https://gitlab.cee.redhat.com/osbuild/vcenter-cleaner
if: ${{ ! always() }}
name: Image Builder vmware account
runs-on: ubuntu-latest
steps:
- name: This workflow is internal only
run: echo