Shelve powered off instances #15795
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |