Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #252 from JensDll/staging
Browse files Browse the repository at this point in the history
github-actions: merge staging into main
  • Loading branch information
JensDll committed May 29, 2023
2 parents b88a3ed + 287fdb9 commit a89899f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
19 changes: 7 additions & 12 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 5 additions & 4 deletions services/steganography.api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a89899f

Please sign in to comment.