Skip to content

Commit

Permalink
[aspnetcore] Docker hub refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceMcCarthy committed Jan 3, 2024
1 parent cd40a58 commit fec8c0f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/main_build-aspnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
export-secrets-to-outputs: true
export-secrets-to-environment: false

- name: Create Kendo license file in the appropriate project directory
run: |
cd src/AspNetCore/MyAspNetCoreApp/wwwroot/js
echo ${{ steps.akeyless.outputs.KENDO_LICENSE_FILE }} > kendo-ui-license.js
- name: Generate a version number for new tag
id: tag-creator
run: |
Expand All @@ -43,7 +48,7 @@ jobs:
- name: Verify tag output
run: echo ${{ steps.tag-creator.outputs.DOCKER_HUB_TAG }}

- name: Get package metadata from Docker Hub
id: meta
uses: docker/metadata-action@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,4 @@ MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
.DS_Store
src/AspNetCore/MyAspNetCoreApp/wwwroot/js/kendo-ui-license.js
2 changes: 1 addition & 1 deletion src/AspNetCore/MyAspNetCoreApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get install libfreetype6 libfontconfig1 -y


FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR src/MyAspNetCoreApp
WORKDIR /src
COPY . .
# Use a docker secret to add the 'Telerik' package source to the default (usually at ~/.nuget/NuGet/NuGet.Config)
RUN --mount=type=secret,id=telerik_key \
Expand Down
2 changes: 2 additions & 0 deletions src/AspNetCore/MyAspNetCoreApp/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<script src="https://cdn.kendostatic.com/2023.3.1114/js/jszip.min.js"></script>
<script src="https://cdn.kendostatic.com/2023.3.1114/js/kendo.all.min.js"></script>
<script src="https://cdn.kendostatic.com/2023.3.1114/js/kendo.aspnetmvc.min.js"></script>

<script src="./js/kendo-ui-license.js"></script>

<!-- For HTML5 Report Viewer -->
<script src="/api/reports/resources/js/telerikReportViewer"></script>
Expand Down

0 comments on commit fec8c0f

Please sign in to comment.