Add pull by digest to the fetch tag dialog
This commit is contained in:
parent
86e4539c04
commit
703a64cd6a
1 changed files with 17 additions and 8 deletions
|
@ -25,6 +25,20 @@ angular.module('quay').directive('fetchTagDialog', function () {
|
||||||
var updateFormats = function() {
|
var updateFormats = function() {
|
||||||
$scope.formats = [];
|
$scope.formats = [];
|
||||||
|
|
||||||
|
$scope.formats.push({
|
||||||
|
'title': 'Docker Pull (by tag)',
|
||||||
|
'icon': 'docker-icon',
|
||||||
|
'command': 'docker pull {hostname}/{namespace}/{name}:{tag}'
|
||||||
|
});
|
||||||
|
|
||||||
|
if ($scope.currentTag && $scope.currentTag.manifest_digest) {
|
||||||
|
$scope.formats.push({
|
||||||
|
'title': 'Docker Pull (by digest)',
|
||||||
|
'icon': 'docker-icon',
|
||||||
|
'command': 'docker pull {hostname}/{namespace}/{name}@{manifest_digest}'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if ($scope.repository) {
|
if ($scope.repository) {
|
||||||
$scope.formats.push({
|
$scope.formats.push({
|
||||||
'title': 'Squashed Docker Image',
|
'title': 'Squashed Docker Image',
|
||||||
|
@ -37,17 +51,11 @@ angular.module('quay').directive('fetchTagDialog', function () {
|
||||||
|
|
||||||
if (Features.ACI_CONVERSION) {
|
if (Features.ACI_CONVERSION) {
|
||||||
$scope.formats.push({
|
$scope.formats.push({
|
||||||
'title': 'Rocket Fetch',
|
'title': 'rkt Fetch',
|
||||||
'icon': 'rocket-icon',
|
'icon': 'rocket-icon',
|
||||||
'command': 'rkt fetch {hostname}/{namespace}/{name}:{tag}'
|
'command': 'rkt fetch {hostname}/{namespace}/{name}:{tag}'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.formats.push({
|
|
||||||
'title': 'Basic Docker Pull',
|
|
||||||
'icon': 'docker-icon',
|
|
||||||
'command': 'docker pull {hostname}/{namespace}/{name}:{tag}'
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$watch('currentEntity', function(entity) {
|
$scope.$watch('currentEntity', function(entity) {
|
||||||
|
@ -97,7 +105,8 @@ angular.module('quay').directive('fetchTagDialog', function () {
|
||||||
'http': Config.getHttp(),
|
'http': Config.getHttp(),
|
||||||
'namespace': $scope.repository.namespace,
|
'namespace': $scope.repository.namespace,
|
||||||
'name': $scope.repository.name,
|
'name': $scope.repository.name,
|
||||||
'tag': $scope.currentTag.name
|
'tag': $scope.currentTag.name,
|
||||||
|
'manifest_digest': $scope.currentTag.manifest_digest
|
||||||
};
|
};
|
||||||
|
|
||||||
var value = format.command;
|
var value = format.command;
|
||||||
|
|
Reference in a new issue