-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.18 KB
/
shelve.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
37
38
39
name: Shelve powered off instances
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
on:
schedule:
- cron: '4 * * * *'
workflow_dispatch:
jobs:
shelve_action_runners:
name: Shelve action runners
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
with:
path: code
- uses: actions/cache@v3.3.2
with:
path: ~/.cache/pip
key: jetstream2-admin-${{ runner.os }}-pip-v1.2.2-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
jetstream2-admin-${{ runner.os }}-pip-
- name: Install openstack
run: python3 -m pip install -r code/start/requirements.txt
- name: Shelve action runners
run: python3 code/shelve-action-runners.py
env:
OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
OS_AUTH_TYPE: v3applicationcredential
OS_AUTH_URL: https://js2.jetstream-cloud.org:5000/v3/
OS_IDENTITY_API_VERSION: 3
OS_REGION_NAME: "IU"
OS_INTERFACE: public