Jetson ROS Humble Core Pytorch r36.3.0 #5
This file contains 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: Jetson ROS Humble Core Pytorch r36.3.0 | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: [Jetson ROS Humble Core r36.3.0] | |
types: | |
- completed | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/r3630-humblecore-pytorch.yml" | |
- "ros-pytorch-images/r3630.humblecore_pytorch.Dockerfile" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/r3630-humblecore-pytorch.yml" | |
- "ros-pytorch-images/r3630.humblecore_pytorch.Dockerfile" | |
env: | |
REGISTRY: ghcr.io | |
OWNER: kalanaratnayake | |
IMAGE_NAME: jetson-ros-pytorch | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency | |
concurrency: | |
# only cancel in-progress jobs or runs for the current workflow - matches against branch & tags | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to the Container registry | |
run: | | |
docker login --username ${{ env.OWNER }} --password ${{ secrets.GH_PAT }} ghcr.io | |
# uses: docker/login-action@v3 | |
# with: | |
# registry: ${{ env.REGISTRY }} | |
# username: ${{ github.actor }} | |
# password: ${{ secrets.GITHUB_TOKEN }} | |
- | |
name: Build and Push image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./ros-pytorch-images/r3630.humblecore_pytorch.Dockerfile | |
push: true | |
platforms: linux/arm64 | |
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:humble-r36.3.0-buildcache | |
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:humble-r36.3.0-buildcache,mode=max | |
tags: | | |
${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:humble-core-r36.3.0 |