From 287fdb9d4baf91431cfc02be59fc3495ff9a0592 Mon Sep 17 00:00:00 2001 From: jens Date: Mon, 29 May 2023 19:05:36 +0200 Subject: [PATCH] update dependabot paths --- .github/dependabot.yaml | 19 +++++++------------ .github/workflows/deploy_docker.yaml | 2 +- services/steganography.api/Dockerfile | 9 +++++---- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index ee1c3bde..70be8af5 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1,25 +1,20 @@ version: 2 updates: - package-ecosystem: "github-actions" - directory: "/.github" + directory: "/" target-branch: "staging" schedule: interval: "daily" - - package-ecosystem: "nuget" - directory: "/services/api" - target-branch: "staging" - schedule: - interval: "weekly" - day: "saturday" - - package-ecosystem: "docker" - directory: "/services/web" + directory: "/services/steganography.api" target-branch: "staging" schedule: interval: "daily" - - package-ecosystem: "docker" - directory: "/services/api" + + - package-ecosystem: "nuget" + directory: "/services/steganography.api" target-branch: "staging" schedule: - interval: "daily" + interval: "weekly" + day: "saturday" diff --git a/.github/workflows/deploy_docker.yaml b/.github/workflows/deploy_docker.yaml index 8754e251..4ac9a318 100644 --- a/.github/workflows/deploy_docker.yaml +++ b/.github/workflows/deploy_docker.yaml @@ -53,6 +53,6 @@ jobs: push: true tags: | ${{ secrets.DOCKER_HUB_USERNAME }}/steganography:app.latest, - ${{ secrets.DOCKER_HUB_USERNAME }}/steganography:app.${{ needs.create-tag.outputs.tag }} + ${{ secrets.DOCKER_HUB_USERNAME }}/steganography:app.${{ needs.create_tag.outputs.tag }} cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/steganography:app.cache cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/steganography:app.cache,mode=max diff --git a/services/steganography.api/Dockerfile b/services/steganography.api/Dockerfile index e0be7784..f4ce59ff 100644 --- a/services/steganography.api/Dockerfile +++ b/services/steganography.api/Dockerfile @@ -28,12 +28,13 @@ COPY steganography.api/src/steganography.api/steganography.api.csproj ./steganog RUN dotnet restore --arch $TARGETARCH ./steganography.api/steganography.api.csproj -# Copy everything else and build -COPY aspnet.common/src/aspnet.common ./aspnet.common/ -COPY steganography.api/src/steganography.domain ./steganography.domain/ -COPY steganography.api/src/steganography.api ./steganography.api/ +# Copy everything else +COPY aspnet.common/src/aspnet.common/ ./aspnet.common/ +COPY steganography.api/src/steganography.domain/ ./steganography.domain/ +COPY steganography.api/src/steganography.api/ ./steganography.api/ COPY --from=build_web /out/dist/ ./steganography.api/wwwroot/ +# Build the project RUN dotnet publish --configuration Release --arch $TARGETARCH \ --no-self-contained --output /app --no-restore \ ./steganography.api/steganography.api.csproj