File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 26
26
description : ' Hostname of the server'
27
27
required : true
28
28
type : string
29
+ size :
30
+ description : ' Size of the dataset to restore (small/medium)'
31
+ required : false
32
+ default : ' small'
33
+ type : string
34
+ version :
35
+ description : ' Version of the dataset to restore (3.8/3.9)'
36
+ required : false
37
+ default : ' 3.8'
38
+ type : string
29
39
ref :
30
40
description : ' Branch ref to use'
31
41
required : false
@@ -69,16 +79,16 @@ jobs:
69
79
az storage blob download \
70
80
--account-name ghesresults \
71
81
--container-name ghes-data \
72
- --name v3.8-small-docs .tar.gz \
73
- --file ghes-data/3.8-small-docs .tar.gz \
82
+ --name v{{ inputs.version }}-{{ inputs.size }} .tar.gz \
83
+ --file ghes-data/{{ inputs.version }}-{{ inputs.size }} .tar.gz \
74
84
--connection-string "${{ secrets.CONNECTIONSTRING }}"
75
85
76
86
- name : Unzip backup and setup symlink
77
87
run : |
78
88
mkdir "$HOME/ghe-backup-data"
79
89
dir_name=$(date +%s)
80
90
mkdir "$HOME/ghe-backup-data/$dir_name"
81
- tar -xvf "ghes-data/3.8-small-docs .tar.gz" -C "$HOME/ghe-backup-data/$dir_name"
91
+ tar -xvf "ghes-data/{{ inputs.version }}-{{ inputs.size }} .tar.gz" -C "$HOME/ghe-backup-data/$dir_name"
82
92
83
93
ln -s "$dir_name" "$HOME/ghe-backup-data/current"
84
94
89
99
run : chmod 0600 "$HOME/backup"
90
100
91
101
- name : change version
92
- run : echo "3.8 .0" > "$HOME/version"
102
+ run : echo "{{ inputs.version }} .0" > "$HOME/version"
93
103
94
104
- name : Prepare for restore
95
105
run : ssh -p122 -i "$HOME/backup" -o StrictHostKeyChecking=no admin@${{ inputs.hostname }} "ghe-maintenance -s"
You can’t perform that action at this time.
0 commit comments