Skip to content

Commit

Permalink
chore: update renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed Aug 29, 2024
1 parent 1d5e29f commit 1446ebc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ on:
branches:
- 'main'

env:
mtk_version: v2.0.2


jobs:
docker:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
18 changes: 7 additions & 11 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -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=(?<mtk_version>.*?)',
],
depName: 'skpr/mtk',
datasourceTemplate: 'github-tags',
},
],
"fileMatch": ["(^|/|\\.)Dockerfile$"],
"matchStrings": ["ENV MTK_VERSION=(?<currentValue>.*?)\n"],
"depNameTemplate": "skpr/mtk",
"datasourceTemplate": "github-tags"
}
]
}

0 comments on commit 1446ebc

Please sign in to comment.