Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 700 Bytes

lint-and-build.md

File metadata and controls

31 lines (27 loc) · 700 Bytes
name: Lint and Build image

on:
  push:
    branches:
      - main

jobs:
  docker-image:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write
    steps:
      - name: Checkout repo
        uses: actions/checkout@v3

      - name: Set up Depot CLI
        uses: depot/setup-action@v1

      - name: Lint and Build
        uses: depot/build-push-action@v1
        with:
          # if no depot.json file is at the root of your repo, you must specify the project id
          project: <your-depot-project-id>
          lint: true
          # Fail build on info, warning, and error linter issues
          lint-fail-on: info
          tags: user/app:latest