-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: package publishing building blocks (#34)
Signed-off-by: Sajay Antony <sajaya@microsoft.com>
- Loading branch information
1 parent
d293a60
commit 47b5c41
Showing
62 changed files
with
61 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
CONFIGURATION=Release | ||
|
||
# Function to determine the version from Git and generate a SemVer 2.0 compliant version. | ||
# Ensure you git tag with -a to annotate the tag with a message | ||
get_version = $(shell \ | ||
TAG=$$(git describe --tags) && \ | ||
echo $$TAG | sed 's/^v//'; \ | ||
) | ||
|
||
build: | ||
dotnet build ./src/OrasProject.Oras --configuration $(CONFIGURATION) | ||
|
||
test: | ||
dotnet test ./tests/OrasProject.Oras.Tests --configuration $(CONFIGURATION) | ||
|
||
pack: | ||
$(eval VERSION := $(call get_version)) | ||
echo $(VERSION) | ||
@if [ -z "$(VERSION)" ]; then \ | ||
dotnet pack ./src/OrasProject.Oras --configuration $(CONFIGURATION) --no-build -o nupkgs; \ | ||
else \ | ||
dotnet pack ./src/OrasProject.Oras --configuration $(CONFIGURATION) --no-build -o nupkgs /p:PackageVersion=$(VERSION); \ | ||
fi | ||
|
||
clean: | ||
dotnet clean ./src/OrasProject.Oras | ||
dotnet clean ./tests/OrasProject.Oras.Tests | ||
|
||
.PHONY: build test pack publish clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
<PackageId>OrasProject.Oras</PackageId> | ||
<Version>0.0.0-dev</Version> | ||
<RepositoryUrl>https://github.com/oras-project/oras-dotnet</RepositoryUrl> | ||
<PackageProjectUrl>https://oras.land</PackageProjectUrl> | ||
<Description>Oras package provides API to work with OCI</Description> | ||
<PackageTags>OCI, ORAS, Registry, Container, Image, Artifacts</PackageTags> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> | ||
<_Parameter1>Oras.Tests</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="System.Text.Json" Version="7.0.2" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="README.md" Pack="true" PackagePath="/"/> | ||
</ItemGroup> | ||
</Project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# About | ||
|
||
Provides an implementation for working with [Open Container](https://opencontainers.org/) | ||
images and artifacts . |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.