Skip to content

fix html5validator #371

fix html5validator

fix html5validator #371

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: [push, pull_request]
env:
imagetag: ${{ github.head_ref || github.ref_name || 'dev' }}
branch: ${{ github.head_ref || github.ref_name || 'dev' }}
node_version: '20'
# 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
# runs-on: self-hosted
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
- name: install modules
run: |
npm install --global less
npm install --global yarn
# - name: install build dependencies
# run: ./install_build_dependencies.sh
- name: build index.html file
run: |
make install
make updatejs
make dev
# - name: move index.html and css to test to tmp directory
# run: |
# mkdir -p /tmp/HTML5Validator
# cp index.html /tmp/HTML5Validator
# cp -r css /tmp/HTML5Validator
- name: HTML5Validator
uses: Cyb3r-Jak3/html5validator-action@v7.2.0
with:
root: /home/runner/work/webModules/webModules
css: true
blacklist: index.mustache.html description.mustache.html js node_modules rest flash identification tips
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: "image tag"
run: echo "image tag set to '${{ env.imagetag }}'"
- name: Build and push builder image
uses: docker/build-push-action@v5
with:
file: Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
build-args: |
BASE_IMAGE_RELEASE=22.04
BASE_IMAGE=ubuntu
BRANCH=${{ env.branch }}
NODE_MAJOR=${{ env.node_version }}
tags: |
abcdesktopio/oc.nginx:${{ env.imagetag }}