How to use a Dockerfile in GitHub Workflow

I appreciate GitLAB's excellent CI documentation even more, since having gone through GitHUB's CI documentation. It took quite a while just to figure out how to use a local Dockerfile as a build tool.

The uses docs don't actually explicitly say you can use a local Dockerfile... and instead infer that you need to create "actions" to be able to use docker.

Instead, just point to the root directory (where your Dockerfile probably is) in the uses key:

    - name: Check out repository
      uses: actions/checkout@v2
    - name: Build Dockerfile
      uses: ./

Hard won info for something so simple. You can refer to my profile repo for a working example.