mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-12-17 10:44:23 +08:00
chore: Update Dockerfile to use GitHub Container Registry for image build and push
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -17,19 +17,11 @@ jobs:
|
||||
with:
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
- name: Install packages
|
||||
run: sudo gem install mdl
|
||||
# Generate Readme, mkdocs.
|
||||
- run: node ./.github/readme-generate.js
|
||||
# Lint issues first. (Without node_modules)
|
||||
- name: Lint markdown files
|
||||
run: mdl . -r ~MD036,~MD024,~MD004,~MD029,~MD013,~MD007
|
||||
- run: pip install -r requirements.txt
|
||||
- run: mkdocs build
|
||||
# Do textlint fix.
|
||||
- run: npm install
|
||||
- run: ./node_modules/.bin/textlint . --fix
|
||||
- run: rm ./node_modules -rvf
|
||||
- run: npm run lint
|
||||
# Save files.
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
|
||||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -13,13 +13,5 @@ jobs:
|
||||
with:
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
- name: Install packages
|
||||
run: sudo gem install mdl
|
||||
- name: Lint markdown files
|
||||
run: mdl . -r ~MD036,~MD024,~MD004,~MD029,~MD013,~MD007
|
||||
- run: pip install -r requirements.txt
|
||||
- run: mkdocs build --strict
|
||||
- run: npm install
|
||||
- run: node .github/manual_lint.js
|
||||
# Suppress 036 Emphasis used instead of a header
|
||||
# Suppress 024 Multiple headers with the same content
|
||||
- run: npm run lint
|
||||
|
||||
Reference in New Issue
Block a user