diff --git a/flux/Dockerfile b/flux/Dockerfile index a60d2da..116ac93 100644 --- a/flux/Dockerfile +++ b/flux/Dockerfile @@ -1,8 +1,9 @@ FROM alpine as build -ENV VERSION=2.1.2 +# renovate: datasource=github-releases depName=fluxcd/flux2 extractVersionTemplate=^v(?.*)$ +ENV VERSION=v2.1.2 ENV CHECKSUM=61b360b50d6cfc34410730b1cebeb75f5eda2b484e47b9a083412f51ad56de68 -ADD https://github.com/fluxcd/flux2/releases/download/v${VERSION}/flux_${VERSION}_linux_amd64.tar.gz /tmp +ADD https://github.com/fluxcd/flux2/releases/download/v${VERSION}/flux_${VERSION#v}_linux_amd64.tar.gz /tmp RUN DOWNLOAD_FILE="/tmp/flux_${VERSION}_linux_amd64.tar.gz" && \ DOWNLOAD_CHECKSUM=$(sha256sum "${DOWNLOAD_FILE}" | awk '{print $1}') && \ if [[ ${DOWNLOAD_CHECKSUM} != ${CHECKSUM} ]]; then \ diff --git a/renovate.json b/renovate.json index 8ed36e7..a6644db 100644 --- a/renovate.json +++ b/renovate.json @@ -1,8 +1,6 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" - ], + "extends": ["config:base"], "schedule": [ "after 11pm every weekday", "before 7am every weekday", @@ -17,40 +15,29 @@ ], "regexManagers": [ { - "fileMatch": [ - "^Earthfile$", - "/Dockerfile$" - ], + "fileMatch": ["^Earthfile$", "/Dockerfile$"], "matchStrings": [ - "#\\s*renovate:\\s*datasource=(?.*?)\\s+depName=(?.*?)(\\s+versioning=(?.*?))?(\\s+extractVersion=(?.*?))?\\sARG\\s+.+_VERSION=(?.*?)\\s" + "#\\s*renovate:\\s*datasource=(?[^\\s]+)\\s+depName=(?[^\\s]+)(\\s+versioning=(?[^\\s]+))?(\\s+extractVersion=(?[^\\n]+))?(\\s+extractVersionTemplate=(?[^\\n]+))?\\n(ARG|ENV)\\s+([^\\s]+)?VERSION=(?[^\\n]+)(\\n(ARG|ENV)\\s+([^\\s]+)?CHECKSUM=(?[a-f0-9]+))?" ], "versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}" }, { - "fileMatch": [ - "^earthly\\.(sh|ps1)$" - ], + "fileMatch": ["^earthly\\.(sh|ps1)$"], "datasourceTemplate": "docker", "depNameTemplate": "earthly/earthly", - "matchStrings": [ - "earthly\\/earthly:(?.*?)\\s" - ], + "matchStrings": ["earthly\\/earthly:(?.*?)\\s"], "versioningTemplate": "semver-coerced" }, { "datasourceTemplate": "helm", - "fileMatch": [ - "^.+/run\\.sh$" - ], + "fileMatch": ["^.+/run\\.sh$"], "matchStrings": [ "#\\s*renovate:\\s*depName=(?.*?)(\\s+repoUrl=(?.*?))?\\s([A-Z0-9_]*)VERSION=\"(?.*?)\"\\s" ] }, { "datasourceTemplate": "helm", - "fileMatch": [ - "^tests/.+_test\\.go$" - ], + "fileMatch": ["^tests/.+_test\\.go$"], "matchStrings": [ "//\\s*renovate:\\s*depName=(?.*?)(\\s+repoUrl=(?.*?))?\\s+.*version: \\\"(?.*?)\\\"\"" ]