Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTK Versioning #11

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- 'main'

env:
mtk_version: v2.0.2


jobs:
docker:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,3 +58,5 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
MTK_VERSION=$mtk_version
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
ARG MTK_VERSION

# build MTK from source
FROM golang:1.18-alpine as builder

WORKDIR /go/src/github.com/skpr
RUN apk add --virtual --update-cache git && \
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
RUN git clone https://github.com/skpr/mtk.git && cd mtk && git checkout 0c133b920123f05404854f3aacf44f05e6d20e03
RUN git clone https://github.com/skpr/mtk.git && cd mtk && git checkout $MTK_VERSION
WORKDIR /go/src/github.com/skpr/mtk/dump

# compile
Expand Down
16 changes: 14 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,17 @@
"matchDepTypes": ["action"],
"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: [
{
customType: 'regex',
fileMatch: ['.github/workflows/docker-image.yaml'],
matchStrings: [
'env:\\s*mtk_version=(?<mtk_version>.*?)',
],
depName: 'skpr/mtk',
datasourceTemplate: 'github-tags',
},
],
}
Loading