ci: build & smoke test #24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and push Docker image | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - development | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-push: | |
| runs-on: [self-hosted, cpu, heavy, gpu] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push base images (ros2, o3de) | |
| env: | |
| AMM_IMG_SUFFIX: ${{ env.SUFFIX }} | |
| run: | | |
| docker compose -f docker/compose.yaml build ros2 o3de | |
| docker compose -f docker/compose.yaml push ros2 o3de | |
| smoke-test: | |
| needs: build-and-push | |
| runs-on: [self-hosted, cpu, heavy, gpu] | |
| steps: | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Headless sim smoke test (/clock) | |
| run: | | |
| IMAGE="robotecai/agentic-mobile-manipulator-o3de:latest" | |
| docker pull "$IMAGE" | |
| docker run --rm --entrypoint pixi "$IMAGE" run sim-smoke | |