Skip to content

Commit

Permalink
s3 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Feb 12, 2024
1 parent 7b1631f commit 7fff4f5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Plogon/BuildProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

using Serilog;

using Tag = Amazon.S3.Model.Tag;

namespace Plogon;

/// <summary>
Expand Down Expand Up @@ -1038,6 +1040,29 @@ await this.dockerClient.Containers.RemoveContainerAsync(containerCreateResponse.
BucketName = S3_BUCKET_NAME,
Key = key,
FilePath = archiveZipFile.FullName,
TagSet =
{
new Tag
{
Key = "AssemblyVersion",
Value = version
},
new Tag
{
Key = "Commit",
Value = task.Manifest.Plugin.Commit
},
new Tag
{
Key = "Channel",
Value = task.Channel
},
new Tag
{
Key = "InternalName",
Value = task.InternalName
}
}
});

if (result.HttpStatusCode != HttpStatusCode.OK)
Expand Down

0 comments on commit 7fff4f5

Please sign in to comment.