-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (36 loc) · 1.18 KB
/
setup-tar.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
45
46
name: setup-tar-creation
on:
workflow_dispatch:
push:
branches:
- km/add_tar_file
env:
REGISTRY: ghcr.io/microsoft
jobs:
build-tar-file:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: microsoft/azure-orbital-space-sdk-github-actions/composite-actions/initialize@km/add_structure
with:
env_file: ./env/spacefx.env
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build and package tar file
shell: bash
run: |
chmod +x ./.vscode/build_setup_tarball.sh
cp ./config/channels/nightly.yaml ./config/nightly.yaml
cp ./config/github/annotations/azure-orbital-space-sdk-setup.yaml ./config/azure-orbital-space-sdk-setup.yaml
echo "Running ./.vscode/build_setup_tarball.sh"
sudo bash ./.vscode/build_setup_tarball.sh
sub_exit_code=${PIPESTATUS[0]}
if [[ $sub_exit_code -gt 0 ]]; then
echo "Previous step failed. Troubleshoot"
echo "Outputting log file..."
cat /var/spacedev/logs/build_setup_tarball.sh.log
echo ""
exit 1
fi