Skip to content

Adding log for artifacts #33

Adding log for artifacts

Adding log for artifacts #33

Workflow file for this run

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: |
echo "Creating directory..."
sudo mkdir -p /var/spacedev/
echo "Setting directory permissions..."
sudo chown -R $USER:$USER /var/log
sudo chown -R $USER:$USER /var/spacedev/
echo "Copying to /var/spacedev/"
bash ./.vscode/copy_to_spacedev.sh
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
- name: Upload /var/spacedev logs
uses: actions/upload-artifact@v2
with:
name: space-dev-logs
path: /var/spacedev/logs