Skip to content
Merged
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
10 changes: 9 additions & 1 deletion build/Build.Docker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public partial class Build
Logging.InBlock(flavour, () =>
{
var flavourFolder = KnownPaths.OutputsDirectory / flavour;

var compressedArtifactPath = KnownPaths.OutputsDirectory / $"{flavour}.zip";
compressedArtifactPath.UncompressTo(flavourFolder);
Log.Information("Uncompressed {ZipPath} to {FolderPath}", compressedArtifactPath, flavourFolder);
Expand All @@ -32,6 +32,14 @@ public partial class Build
Directory.Move(flavourFolder / "linux-x64",
flavourFolder / "linux-amd64");
Log.Information("Renamed 'linux-x64' folder to 'linux-amd64'");
foreach (var supportedPlatform in supportedPlatforms)
{
var platformFolder = supportedPlatform.Replace("/", "-");
// change the native binary to be executable in each platform
PowerShellTasks.PowerShell(_ => _
.EnableNoProfile()
.SetCommand($"chmod +x '{flavourFolder / platformFolder / flavour}'"));
}

var tag = $"octopusdeploy/{flavour}:{NugetVersion.Value}".ToLowerInvariant();

Expand Down