Skip to content

Commit

Permalink
use config file for base-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dskiff committed Apr 27, 2024
1 parent 84a10cc commit bd3bb46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ jobs:
--auto-version-annotation=git \
"./dist/tko_linux_amd64_v1"
env:
TKO_BASE_REF: debian:bookworm-slim@sha256:155280b00ee0133250f7159b567a07d7cd03b1645714c3a7458b2287b0ca83cb
GITHUB_TOKEN: ${{ github.token }}
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@ jobs:
--entrypoint "/bin/bash" \
"./dist/tko_linux_amd64_v1"
env:
TKO_BASE_REF: debian:bookworm-slim@sha256:155280b00ee0133250f7159b567a07d7cd03b1645714c3a7458b2287b0ca83cb
GITHUB_TOKEN: ${{ github.token }}
1 change: 1 addition & 0 deletions .tko.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build:
base-ref: debian:bookworm-slim@sha256:155280b00ee0133250f7159b567a07d7cd03b1645714c3a7458b2287b0ca83cb
destination-path: /usr/local/bin
entrypoint: /usr/local/bin/tko
default-annotations:
Expand Down
6 changes: 3 additions & 3 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
{
"customType": "regex",
"fileMatch": [
"^.github/workflows/(.+).yml$"
"^.tko.yml$"
],
"matchStrings": [
"TKO_BASE_REF:\\s*(?<depName>[^:\\n]+):(?<currentValue>[^@\\n]+)(@(?<currentDigest>sha256:[a-f0-9]+))?"
"base-ref:\\s*(?<depName>[^:\\n]+):(?<currentValue>[^@\\n]+)(@(?<currentDigest>sha256:[a-f0-9]+))?"
],
"autoReplaceStringTemplate": "TKO_BASE_REF: {{{depName}}}:{{{newValue}}}{{#if newDigest}}@{{{newDigest}}}{{/if}}",
"autoReplaceStringTemplate": "base-ref:{{{depName}}}:{{{newValue}}}{{#if newDigest}}@{{{newDigest}}}{{/if}}",
"datasourceTemplate": "docker"
}
]
Expand Down

0 comments on commit bd3bb46

Please sign in to comment.