Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fff8654fe | |||
| 9cfe9e2ab2 | |||
| fd799d6158 | |||
| 5f53207050 | |||
| 02dfdd2a07 |
@@ -10,7 +10,7 @@ env:
|
||||
DOTNET_VERSION: '8.0.x'
|
||||
DOCKER_IMAGE_NAME: watcher-server
|
||||
REGISTRY_URL: git.triggermeelmo.com
|
||||
DOCKER_PLATFORMS: 'linux/amd64,linux/arm64'
|
||||
DOCKER_PLATFORMS: 'linux/amd64'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
@@ -115,9 +115,9 @@ jobs:
|
||||
- name: Build and Push Multi-Arch Docker Image
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform ${{ env.DOCKER_PLATFORMS }} \
|
||||
--platform linux/amd64 \
|
||||
--build-arg VERSION=${{ needs.set-tag.outputs.tag_name }} \
|
||||
-t ${{ env.REGISTRY_URL }}/watcher/${{ env.DOCKER_IMAGE_NAME }}:${{ needs.set-tag.outputs.tag_name }} \
|
||||
-t ${{ env.REGISTRY_URL }}/triggermeelmo/${{ env.DOCKER_IMAGE_NAME }}:${{ needs.set-tag.outputs.tag_name }} \
|
||||
--push .
|
||||
|
||||
tag:
|
||||
|
||||
@@ -4,12 +4,12 @@ WORKDIR /app
|
||||
|
||||
# Projektdateien kopieren und Abhängigkeiten wiederherstellen
|
||||
COPY *.sln .
|
||||
COPY watcher-monitoring/*.csproj ./Watcher/
|
||||
COPY watcher-monitoring/*.csproj ./watcher-monitoring/
|
||||
RUN dotnet restore
|
||||
|
||||
# Restliche Dateien kopieren und Build ausführen
|
||||
COPY watcher-monitoring/. ./Watcher/
|
||||
WORKDIR /app/Watcher
|
||||
COPY watcher-monitoring/. ./watcher-monitoring/
|
||||
WORKDIR /app/watcher-monitoring
|
||||
RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
# 2. Laufzeit-Phase: ASP.NET Core Runtime
|
||||
@@ -43,6 +43,7 @@ USER watcher
|
||||
|
||||
# Expose Port 5000
|
||||
EXPOSE 5000
|
||||
|
||||
ENV ASPNETCORE_URLS=http://*:5000
|
||||
ENV ASPNETCORE_ENVIRONMENT=Production
|
||||
|
||||
@@ -50,4 +51,4 @@ ENV ASPNETCORE_ENVIRONMENT=Production
|
||||
ENV WATCHER_VERSION=${VERSION}
|
||||
|
||||
# Anwendung starten
|
||||
ENTRYPOINT ["dotnet", "Watcher.dll"]
|
||||
ENTRYPOINT ["dotnet", "watcher-monitoring.dll"]
|
||||
Reference in New Issue
Block a user