Rollback

@can('view', $application) Reload Available Images @endcan
You can easily rollback to a previously built (local) images quickly.
@if($serverRetentionDisabled) Image retention is disabled at the server level. This setting has no effect until the server administrator enables it. @endif
Save
@forelse ($images as $image)
@php $tag = data_get($image, 'tag'); $date = data_get($image, 'created_at'); $interval = \Illuminate\Support\Carbon::parse($date); // Check if tag looks like a commit SHA (hex string) or PR tag (pr-N) $isCommitSha = preg_match('/^[0-9a-f]{7,128}$/i', $tag); $isPrTag = preg_match('/^pr-\d+$/', $tag); $isRollbackable = $isCommitSha || $isPrTag; @endphp
@if (data_get($image, 'is_current')) LIVE | @endif @if ($isCommitSha) SHA: {{ $tag }} @elseif ($isPrTag) PR: {{ $tag }} @else Tag: {{ $tag }} @endif
{{ $interval->diffForHumans() }}
{{ $date }}
@can('deploy', $application) @if (data_get($image, 'is_current')) Rollback @elseif (!$isRollbackable) Rollback @else Rollback @endif @endcan
@empty
No images found locally.
@endforelse
Loading available docker images...