54 orin docker #1
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
| # Process for building and pushing the full Jetson Orin Nano docker image | |
| name: Docker Build and Push - Prod | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| types: | |
| - opened | |
| - synchronize | |
| workflow_dispatch: | |
| jobs: | |
| build-base: | |
| name: Build Base Image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v2 | |
| with: | |
| platforms: arm64,amd64 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and Push Base Image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ./docker/l4t-ros2-docker/jazzy | |
| file: ./docker/l4t-ros2-docker/jazzy/Dockerfile | |
| push: true | |
| platforms: linux/arm64 | |
| tags: kestreldev/l4t-ros2-docker:jazzy | |
| cache-from: | | |
| type=registry,ref=kestreldev/l4t-ros2-docker:cache-jazzy | |
| cache-to: | | |
| type=registry,ref=kestreldev/l4t-ros2-docker:cache-jazzy,mode=max |