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

feat!: pin renovate major version #880

Merged
merged 1 commit into from
Nov 8, 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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ If you want to use the `github-actions` manager, you must setup a [special token
### `renovate-image`

The Renovate Docker image name to use.
If omitted or `renovate-image === ''` the action will use the `ghcr.io/renovatebot/renovate` Docker image name otherwise.
If omitted the action will use the `ghcr.io/renovatebot/renovate:<renovate-version>` Docker image name otherwise.
If a Docker image name is defined, the action will use that name to pull the image.

This sample will use `myproxyhub.domain.com/renovate/renovate` image.
This sample will use `myproxyhub.domain.com/renovate/renovate:<renovate-version>` image.

```yml
....
Expand All @@ -200,7 +200,7 @@ jobs:
token: ${{ secrets.RENOVATE_TOKEN }}
```

This sample will use `ghcr.io/renovatebot/renovate` image.
This sample will use `ghcr.io/renovatebot/renovate:<renovate-version>` image.

```yml
....
Expand All @@ -219,7 +219,7 @@ jobs:
### `renovate-version`

The Renovate version to use.
If omitted the action will use the `latest` Docker tag.
If omitted the action will use the [`default version`](./action.yml#L28) Docker tag.
Check [the available tags on Docker Hub](https://hub.docker.com/r/renovate/renovate/tags).

This sample will use `ghcr.io/renovatebot/renovate:39.7.6` image.
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ inputs:
description: |
Renovate version to use.
required: false
default: 'latest'
default: '39' # renovate
renovate-image:
description: |
Renovate docker image name.
Expand Down
2 changes: 1 addition & 1 deletion src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { warning } from '@actions/core';

export class Docker {
private static readonly image = 'ghcr.io/renovatebot/renovate';
private static readonly version = 'latest';
private static readonly version = '39'; // renovate

private readonly dockerImage: string;
private readonly fullTag: string;
Expand Down