diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6c9715f..0fc6e0e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,16 +12,25 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on + pre-commit: runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - name: pre-commit uses: pre-commit/action@v1.1.0 + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 - name: Hadolint Action uses: brpaz/hadolint-action@v1.1.0 + + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the tagged Docker image + run: docker build .