Skip to content

Commit

Permalink
Debug issues in docker export
Browse files Browse the repository at this point in the history
  • Loading branch information
maseabunikie committed Jun 21, 2023
1 parent fba94fb commit 26e6604
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tii-mocap-pose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,21 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Cross-compile mocap-pose
- name: Cross-compile mocap-pose and export
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.builder
build-args: TARGET_ARCHITECTURE=${{ matrix.architecture }}
tags: mocap-pose:dev-${{ matrix.architecture }}
outputs: type=docker,dest=/tmp/mocap-pose-${{ matrix.architecture }}.tar
load: true
#outputs: type=docker,dest=/tmp/mocap-pose-${{ matrix.architecture }}.tar

- name: Copy ROS2 installation directory
run: |
docker load /tmp/mocap-pose-${{ matrix.architecture }}.tar
docker run --rm -d --name=tmp-container-${{ matrix.architecture }} -t mocap-pose:dev-${{ matrix.architecture }} |
docker cp tmp-container-${{ matrix.architecture }}:install.xz install-${{ matrix.architecture }}.xz
docker image inspect mocap-pose:dev-${{ matrix.architecture }}
docker run --rm -d --name=tmp-container-${{ matrix.architecture }} -t mocap-pose:dev-${{ matrix.architecture }}
docker cp tmp-container-${{ matrix.architecture }}:/main_ws/install.xz install-${{ matrix.architecture }}.xz
docker stop tmp-container-${{ matrix.architecture }}
- name: Upload install-${{ matrix.architecture }}.xz artifact
Expand Down

0 comments on commit 26e6604

Please sign in to comment.