Skip to content

Commit

Permalink
Set default value for docker tag in the input
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed May 31, 2021
1 parent 3b60c85 commit f13c7c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/extension/task/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ async function run() {
let autoApproveUserEmail: string = tl.getInput("autoApproveUserEmail");
let autoApproveUserToken: string = tl.getInput("autoApproveUserToken");
let extraCredentials = tl.getVariable("DEPENDABOT_EXTRA_CREDENTIALS");
// TODO: get the latest version to use from a given url
let dockerImageTag: string = tl.getInput('dockerImageTag') || "0.4"; // pull the latest patch for 0.4 e.g. 0.4.0
let dockerImageTag: string = tl.getInput('dockerImageTag'); // TODO: get the latest version to use from a given url

// Prepare the github token, if one is provided
let githubAccessToken: string= tl.getInput("gitHubAccessToken");
Expand Down
3 changes: 2 additions & 1 deletion src/extension/task/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@
"groupName": "advanced",
"label": "Tag of the docker image to be pulled.",
"required": false,
"helpMarkDown": "The image tag to use when pulling the docker container used by the task. A tag also defines the version. By default, the task decides which tag/version to use. This can be the latest or most stable version."
"defaultValue": "0.5",
"helpMarkDown": "The image tag to use when pulling the docker container used by the task. A tag also defines the version. By default, the task decides which tag/version to use. This can be the latest or most stable version. You can also use `major.minor` format to get the latest patch"
}
],
"dataSourceBindings": [],
Expand Down

0 comments on commit f13c7c7

Please sign in to comment.