-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 1002 Bytes
/
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
name: setup-tar-creation
on:
workflow_dispatch:
push:
branches:
- main
env:
REGISTRY: ghcr.io/microsoft
IMAGE_NAME: ${{ github.repository }}
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: |
echo "Running ./.vscode/build_setup_tarball.sh"
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