Skip to content

Adds CI Improvements - Stage 2 #20

Adds CI Improvements - Stage 2

Adds CI Improvements - Stage 2 #20

Workflow file for this run

name: Debug ECR
on:
push:
branches:
- '**'
pull_request:
workflow_dispatch:
env:
ECR_REGION: us-west-2
ECR_REPOSITORY: isaaclab-ci
IMAGE_TAG: isaaclab-ci:${{ github.sha }}
jobs:
build-and-push:
name: Build and push to ECR
runs-on: [self-hosted, gpu]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and push
uses: ./.github/actions/ecr-build-push-pull
with:
image-tag: ${{ env.IMAGE_TAG }}
isaacsim-base-image: nvcr.io/nvidian/isaac-sim
isaacsim-version: latest-develop
dockerfile-path: .github/workflows/Dockerfile.hello
ecr-repository: ${{ env.ECR_REPOSITORY }}
aws-region: ${{ env.ECR_REGION }}
- name: Run toy task in container
run: |
# ACCEPT_EULA=Y required by the isaac-sim base image at startup
# --entrypoint sh overrides the isaac-sim entrypoint so the container exits after our command
docker run --rm -e ACCEPT_EULA=Y --entrypoint sh "${{ env.IMAGE_TAG }}" \
-c 'echo "Hello from inside the container!" && uname -a && nvidia-smi'