2023-04-07 15:58:26 +00:00
|
|
|
name: Docker Build and Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
2023-04-07 17:29:18 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-04-07 15:58:26 +00:00
|
|
|
|
|
|
|
- name: Build Docker Image
|
2023-04-07 17:37:52 +00:00
|
|
|
uses: docker/build-push-action@v4
|
2023-04-07 15:58:26 +00:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: false
|
2023-06-08 06:58:02 +00:00
|
|
|
tags: lollms-webui:latest
|
2023-04-07 15:58:26 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
2023-04-07 17:29:18 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-04-07 15:58:26 +00:00
|
|
|
|
|
|
|
- name: Run Hadolint
|
|
|
|
run: |
|
2023-04-07 16:16:26 +00:00
|
|
|
docker run --rm -i -v $PWD/.hadolint.yaml:/.config/hadolint.yaml hadolint/hadolint < Dockerfile
|