variant-inc/Lazy Action Dotnet
Github Action to perform build, test , scan and generate Image for Dotnet ## Permissions Add the following permissions to the job ```yaml permissions: id-token: write contents: read ``` ## Usage ```yaml - name: Actions Dotnet uses: variant-inc/actions-dotnet@v2 with: ecr_repository: 'demo/example' dotnet-version: '6.0.x' ``` ## Locating Packages Dotnet Packages are located within the NuGet registry here. ```text https://github.com/orgs/<organization>/packages?ecosystem=all ``` ## Using Packages To use a package, follow these instructions below. First authenticate to GitHub Packages, change the .csproj file to match the package, and then use the dotnet restore command. ```text Following these instructions https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry#installing-a-package ``` ## Locating Container Images ECR containers can be located with this URI. ```text 064859874041.dkr.ecr.us-east-2.amazonaws.com/<ecr_repository> ```
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| cloud_region | Region where the image will be created. | no | us-east-2 |
| dockerfile_dir_path | Directory path to the dockerfile | no | . |
| dotnet-version | The dotnet-version input is optional. The default version of Dotnet in PATH varies between runners and can be changed unexpectedly so we recommend always setting Dotnet version explicitly using the dotnet-version input. | no | — |
| ecr_repository | ECR repository name | no | — |
| nuget-version | Nuget version | no | latest |
| nuget_push_enabled | Enabled Nuget Push to Package Registry. | no | false |
Outputs
no outputs