fix: broken release (#687)

This commit is contained in:
Michael Kriese 2023-02-03 11:55:24 +01:00 committed by GitHub
parent bf8b93a565
commit 0a8bd9aa4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 40 deletions

View file

@ -1,22 +1,23 @@
import type { Input } from './input';
class Docker {
readonly repository = 'renovate/renovate';
// renovate: datasource=docker depName=renovate/renovate versioning=docker
readonly tag = '34.121.0-slim';
readonly tagSuffix = '-slim';
readonly fullTag: string;
// renovate: datasource=docker depName=renovate/renovate versioning=docker
const tag = '34.121.0-slim';
constructor(private input: Input) {
this.fullTag = input.useSlim() ? this.tag : this.tag.replace(this.tagSuffix, '');
class Docker {
private static readonly repository = 'renovate/renovate';
private static readonly tagSuffix = '-slim';
private readonly fullTag: string;
constructor(input: Input) {
this.fullTag = input.useSlim() ? tag : tag.replace(Docker.tagSuffix, '');
}
image(): string {
return `${this.repository}:${this.fullTag}`;
return `${Docker.repository}:${this.fullTag}`;
}
version(): string {
return this.fullTag;
static version(): string {
return tag.replace(Docker.tagSuffix, '');
}
}

View file

@ -1,7 +1,4 @@
import * as core from '@actions/core';
import Docker from './docker';
import { Input } from './input';
const input = new Input();
const docker = new Docker(input);
core.setOutput('version', docker.version());
core.setOutput('version', Docker.version());