fix: add --no-cache to deploy-now build step; revert temp cache bust changes
This commit is contained in:
@@ -94,7 +94,7 @@ jobs:
|
|||||||
printf 'fi\n' >> "$SCRIPT"
|
printf 'fi\n' >> "$SCRIPT"
|
||||||
printf '\n' >> "$SCRIPT"
|
printf '\n' >> "$SCRIPT"
|
||||||
printf 'echo "Deploying all services"\n' >> "$SCRIPT"
|
printf 'echo "Deploying all services"\n' >> "$SCRIPT"
|
||||||
printf 'docker compose --env-file /tmp/nexus-deploy-env build\n' >> "$SCRIPT"
|
printf 'docker compose --env-file /tmp/nexus-deploy-env build --no-cache\n' >> "$SCRIPT"
|
||||||
printf 'docker compose --env-file /tmp/nexus-deploy-env up -d --force-recreate\n' >> "$SCRIPT"
|
printf 'docker compose --env-file /tmp/nexus-deploy-env up -d --force-recreate\n' >> "$SCRIPT"
|
||||||
printf '\n' >> "$SCRIPT"
|
printf '\n' >> "$SCRIPT"
|
||||||
printf 'echo "Waiting for services to become healthy (up to 180s)..."\n' >> "$SCRIPT"
|
printf 'echo "Waiting for services to become healthy (up to 180s)..."\n' >> "$SCRIPT"
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
|
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
|
||||||
ARG DEPLOY_TIMESTAMP
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY Nexus.Api.csproj .
|
COPY Nexus.Api.csproj .
|
||||||
# cache-bust: 2026-06-22T19:56+02
|
|
||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN dotnet publish -c Release -o /app/publish
|
RUN dotnet publish -c Release -o /app/publish
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ services:
|
|||||||
api:
|
api:
|
||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
args:
|
|
||||||
DEPLOY_TIMESTAMP: "20260622195600"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
Reference in New Issue
Block a user