From 8615736e84f802833d0581b1d7f58e7daddc6340 Mon Sep 17 00:00:00 2001 From: BlackDex Date: Sat, 19 Jun 2021 19:22:19 +0200 Subject: Multiple Admin Interface fixes and some others. Misc: - Fixed hadolint workflow, new git cli needs some extra arguments. - Add ignore paths to all specific on triggers. - Updated hadolint version. - Made SMTP_DEBUG read-only, since it can't be changed at runtime. Admin: - Migrated from Bootstrap v4 to v5 - Updated jquery to v3.6.0 - Updated Datatables - Made Javascript strict - Added a way to show which ENV Vars are overridden. - Changed the way to provide data for handlebars. - Fixed date/time check. - Made support string use details and summary feature of markdown/github. --- .github/workflows/build.yml | 17 +++++++++++++++-- .github/workflows/hadolint.yml | 9 ++++++--- 2 files changed, 21 insertions(+), 5 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 151b0d54..48b89cc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,19 @@ name: Build on: push: + paths-ignore: + - "*.md" + - "*.txt" + - ".dockerignore" + - ".env.template" + - ".gitattributes" + - ".gitignore" + - "azure-pipelines.yml" + - "docker/**" + - "hooks/**" + - "tools/**" + - ".github/FUNDING.yml" + - ".github/ISSUE_TEMPLATE/**" pull_request: # Ignore when there are only changes done too one of these paths paths-ignore: @@ -39,13 +52,13 @@ jobs: features: [sqlite,mysql,postgresql] # Remember to update the `cargo test` to match the amount of features channel: nightly os: ubuntu-18.04 - ext: + ext: "" # - target-triple: x86_64-unknown-linux-gnu # host-triple: x86_64-unknown-linux-gnu # features: "sqlite,mysql,postgresql" # channel: stable # os: ubuntu-18.04 - # ext: + # ext: "" name: Building ${{ matrix.channel }}-${{ matrix.target-triple }} runs-on: ${{ matrix.os }} diff --git a/.github/workflows/hadolint.yml b/.github/workflows/hadolint.yml index 76ab9454..e52e5c07 100644 --- a/.github/workflows/hadolint.yml +++ b/.github/workflows/hadolint.yml @@ -2,6 +2,9 @@ name: Hadolint on: push: + # Ignore when there are only changes done too one of these paths + paths: + - "docker/**" pull_request: # Ignore when there are only changes done too one of these paths paths: @@ -22,14 +25,14 @@ jobs: - name: Download hadolint shell: bash run: | - sudo curl -L https://github.com/hadolint/hadolint/releases/download/v$HADOLINT_VERSION/hadolint-$(uname -s)-$(uname -m) -o /usr/local/bin/hadolint && \ + sudo curl -L https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-$(uname -s)-$(uname -m) -o /usr/local/bin/hadolint && \ sudo chmod +x /usr/local/bin/hadolint env: - HADOLINT_VERSION: 2.3.0 + HADOLINT_VERSION: 2.5.0 # End Download hadolint # Test Dockerfiles - name: Run hadolint shell: bash - run: git ls-files --exclude='docker/*/Dockerfile*' --ignored | xargs hadolint + run: git ls-files --exclude='docker/*/Dockerfile*' --ignored --cached | xargs hadolint # End Test Dockerfiles -- cgit v1.2.3