name: Docker Image CI

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:

  build-ubuntu2004:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Build TensorRT-OSS ubuntu20.04 container
      run: docker build . --file docker/ubuntu-20.04.Dockerfile --build-arg uid=1000 --build-arg gid=1000 --tag tensorrt-ubuntu20.04:$(date +%s)
