diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index fcd6991..21d9649 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -11,10 +11,6 @@ on: branches: - 'main' -env: - mtk_version: v2.0.2 - - jobs: docker: runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 58dfbbe..f60e2c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ ARG MTK_VERSION # build MTK from source FROM golang:1.22-alpine as builder +ENV MTK_VERSION=v2.0.2 + WORKDIR /go/src/github.com/skpr RUN apk add --virtual --update-cache git && \ rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/* diff --git a/renovate.json b/renovate.json index 7cd58bb..b424430 100644 --- a/renovate.json +++ b/renovate.json @@ -10,16 +10,12 @@ "groupName": "GitHub actions" } ], - // MTK version -- really wanted to put this in a .env or something, but this was as close as I could get - customManagers: [ + "regexManagers": [ { - customType: 'regex', - fileMatch: ['.github/workflows/docker-image.yaml'], - matchStrings: [ - 'env:\\s*mtk_version=(?.*?)', - ], - depName: 'skpr/mtk', - datasourceTemplate: 'github-tags', - }, - ], + "fileMatch": ["(^|/|\\.)Dockerfile$"], + "matchStrings": ["ENV MTK_VERSION=(?.*?)\n"], + "depNameTemplate": "skpr/mtk", + "datasourceTemplate": "github-tags" + } + ] }