Skip to content

Commit 8f22b06

Browse files
committed
wip install_build_artifact
1 parent 6e85cd7 commit 8f22b06

File tree

4 files changed

+49
-2
lines changed

4 files changed

+49
-2
lines changed

.github/workflows/pr_testing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install ShellCheck
1818
run: sudo apt-get install shellcheck
1919
- name: Run ShellCheck
20-
run: shellcheck -x tasks/*.sh
20+
run: shellcheck -x tasks/*.sh files/*.sh
2121

2222
test-install-task-on-ubuntu:
2323
strategy:

tasks/install.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"requirements": ["shell"],
2828
"files": [
2929
"facts/tasks/bash.sh",
30-
"openvox_bootstrap/files/common.sh"
30+
"files/common.sh"
3131
]
3232
}
3333
]

tasks/install_build_artifact.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "Downloads and installs a package directly from openvox build artifact server.",
3+
"parameters": {
4+
"version": {
5+
"description": "The version of the package to install.",
6+
"type": "String[1]"
7+
},
8+
"package": {
9+
"description": "The name of the package to install.",
10+
"type": "String[1]",
11+
"default": "openvox-agent"
12+
},
13+
"artifacts_source": {
14+
"description": "URL to the build artifacts server.",
15+
"type": "String[1]",
16+
"default": "https://s3.osuosl.org/openvox-artifacts"
17+
}
18+
},
19+
"implementations": [
20+
{
21+
"name": "install_linux.sh",
22+
"requirements": ["shell"],
23+
"files": [
24+
"facts/tasks/bash.sh",
25+
"openvox_bootstrap/files/common.sh"
26+
]
27+
}
28+
]
29+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#! /usr/bin/env bash
2+
3+
set -e
4+
5+
# PT_* variables are set by Bolt.
6+
# shellcheck disable=SC2154
7+
installdir=$PT__installdir
8+
# shellcheck disable=SC2154
9+
version=${PT_version}
10+
# shellcheck disable=SC2154
11+
package=${PT_package}
12+
# shellcheck disable=SC2154
13+
artifacts_source=${PT_artifacts_source}
14+
15+
# shellcheck source=files/common.sh
16+
source "${installdir}/openvox_bootstrap/files/common.sh"
17+
18+

0 commit comments

Comments
 (0)