ci: publish only the web application container
All checks were successful
Caddy Manager CI build / docker (push) Successful in 2m45s
All checks were successful
Caddy Manager CI build / docker (push) Successful in 2m45s
Disable container support for tests and bump the application version to 1.2.1.
This commit is contained in:
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
@@ -29,8 +29,10 @@ jobs:
|
||||
dotnet-quality: 'ga'
|
||||
cache: true
|
||||
cache-dependency-path: '**/packages.lock.json'
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore --locked-mode
|
||||
- name: Restore dependencies
|
||||
# Scoped to the web app so the test project is never restored or built here; it pulls in
|
||||
# Contracts and Services through its project references. Tests run locally, not in this job.
|
||||
run: dotnet restore CaddyManager/CaddyManager.csproj --locked-mode
|
||||
- name: Application metadata
|
||||
id: metadata
|
||||
run: |
|
||||
@@ -41,7 +43,7 @@ jobs:
|
||||
sed -i "s/public static readonly string CommitHash = \"\[DEVELOPMENT\]\";/public static readonly string CommitHash = \"${{ steps.metadata.outputs.COMMIT_HASH }}\";/" CaddyManager/Configurations/Application/ApplicationInfo.cs
|
||||
- name: Publish container
|
||||
run: |
|
||||
dotnet publish \
|
||||
dotnet publish CaddyManager/CaddyManager.csproj \
|
||||
--configuration Release --os linux-musl --arch x64 \
|
||||
/t:PublishContainer -p ContainerRegistry=ghcr.io \
|
||||
-p ContainerRepository=${{ github.repository }} -p:ContainerImageTags='"${{ steps.metadata.outputs.APP_VERSION }};latest"'
|
||||
Reference in New Issue
Block a user