diff --git a/.github/renovate.json b/.github/renovate.json index db48c61..8e0dc09 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -46,7 +46,8 @@ ], "matchStrings": [ "# renovate datasource: (?[^,]+), depName: (?[^\\n]+)\\n.+?(?v?\\d+(\\.\\d+(\\.\\d+)?)?)\\n" - ] + ], + "versioningTemplate": "semver" }, { "description": "Match versions in rebar.config", @@ -61,7 +62,7 @@ "versioningTemplate": "semver" }, { - "description": "Match versions in Dockerfile", + "description": "Match versions (per datasource and depName) in Dockerfile", "customType": "regex", "fileMatch": [ "Dockerfile" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1c56c11..1a6f2d0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,14 +4,19 @@ name: Lint "on": push jobs: + vsns: + runs-on: ubuntu-22.04 + + outputs: + # renovate datasource: docker, depName: hadolint/hadolint + hadolint: 2.12.0 + build: name: Lint runs-on: ubuntu-22.04 - env: - # renovate datasource: docker, depName: hadolint/hadolint - hadolint-version: 2.12.0 + needs: [vsns] steps: - name: Checkout @@ -23,7 +28,7 @@ jobs: npm run dist - name: Lint Dockerfile - run: docker run --rm -i hadolint/hadolint:${{ env.hadolint-version }} < Dockerfile + run: docker run --rm -i hadolint/hadolint:${{ needs.vsns.outputs.hadolint }} < Dockerfile - name: Check if build left artifacts run: git diff --exit-code