mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 17:02:36 +00:00
fix: broken release (#687)
This commit is contained in:
parent
bf8b93a565
commit
0a8bd9aa4a
3 changed files with 21 additions and 40 deletions
|
|
@ -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, '');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue