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