-
Notifications
You must be signed in to change notification settings - Fork 53
44 lines (37 loc) · 1.11 KB
/
alpha_cleanup.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
# Alpha purgation
name: Alpha clean-up
on:
# Check for updates every day
schedule:
- cron: "0 0 * * *"
# Allow to clean-up a specific version
workflow_dispatch:
inputs:
appVersion:
description: "The version to purge."
required: true
default: ""
jobs:
alpha-cleanup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Install SSH key for Bastion
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DEV_TOOLS_BASTION_PRIVATE_KEY }}
name: id_rsa-bastion
known_hosts: ${{ secrets.KNOWN_HOSTS_OF_BASTION }}
config: ${{ secrets.CONFIG }}
- name: Install SSH key of target
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DEV_TOOLS_EC2_PRIVATE_KEY }}
name: id_rsa-target
known_hosts: ${{ secrets.KNOWN_HOSTS_OF_TARGET }}
config: ${{ secrets.CONFIG }}
- name: Clean-up old versions
run: bash tools/cleanup.sh ${{ github.event.inputs.appVersion }}