From c10a7af97715873f2b2dc5eac43eb2b49f9366af Mon Sep 17 00:00:00 2001 From: Marlon Saglia Date: Tue, 3 Sep 2024 11:05:40 +0200 Subject: [PATCH] WIP --- .github/workflows/.yamllint | 2 ++ .github/workflows/docker-publish.yml | 4 ++-- .github/workflows/jekyll-feed-to-vespa.yml | 2 +- jekyll-build-json/action.yml | 8 ++++++-- jekyll-build-json/entrypoint.sh | 2 +- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/.yamllint b/.github/workflows/.yamllint index f28a9f8..b7f66a1 100644 --- a/.github/workflows/.yamllint +++ b/.github/workflows/.yamllint @@ -2,6 +2,8 @@ extends: default rules: + document-start: + present: false line-length: disable truthy: check-keys: false diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 32a05e4..50a87c7 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -91,7 +91,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: ${{ matrix.docker-platform }} - provenance: false # Bug: https://github.com/docker/build-push-action/issues/820 + # Disable "provenance" vecause of this bug: https://github.com/docker/build-push-action/issues/820 + provenance: false cache-from: type=gha cache-to: type=gha,mode=max - diff --git a/.github/workflows/jekyll-feed-to-vespa.yml b/.github/workflows/jekyll-feed-to-vespa.yml index 0b179a1..d54e312 100644 --- a/.github/workflows/jekyll-feed-to-vespa.yml +++ b/.github/workflows/jekyll-feed-to-vespa.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v4 - name: Build with Jekyll - uses: vespa-engine/gh-actions/jekyll-build-json@main + uses: vespa-engine/gh-actions/jekyll-build-json@fix-jekyll-build with: log_level: ${{ github.event.inputs.log_level }} diff --git a/jekyll-build-json/action.yml b/jekyll-build-json/action.yml index 51b0d65..99f535b 100644 --- a/jekyll-build-json/action.yml +++ b/jekyll-build-json/action.yml @@ -16,12 +16,16 @@ inputs: default: ./_config.yml log_level: description: 'Log level for Jekyll build.' - required: false + required: true default: 'info' token: description: 'GitHub token' required: true default: ${{ github.token }} + continer-version: + description: 'Version of the container to be built.' + required: true + default: 'latest' runs: using: 'docker' - image: 'docker://ghcr.io/vespa-engine/gh-actions/jekyll-build-json' + image: 'docker://ghcr.io/vespa-engine/gh-actions/jekyll-build-json:${{ inputs.container-version }}' diff --git a/jekyll-build-json/entrypoint.sh b/jekyll-build-json/entrypoint.sh index 6de16a5..21aefa4 100755 --- a/jekyll-build-json/entrypoint.sh +++ b/jekyll-build-json/entrypoint.sh @@ -17,7 +17,7 @@ JEKYLL_ARGS=("-p" "/opt/jekyll/plugins") export JEKYLL_ENV="production" export JEKYLL_GITHUB_TOKEN="${INPUT_TOKEN}" export JEKYLL_BUILD_REVISION="${GITHUB_SHA}" -export JEKYLL_LOG_LEVEL="${INPUT_LOG_LEVEL}" +export JEKYLL_LOG_LEVEL="${INPUT_LOG_LEVEL:-info}" if [[ "${JEKYLL_LOG_LEVEL}" = "verbose" || "${JEKYLL_LOG_LEVEL}" = "debug" ]]; then JEKYLL_ARGS+=("-V")