Skip to content

Commit 2aa85fb

Browse files
committed
Add KAMAL_DEPLOY_HOST to Docker build
1 parent f47a1a4 commit 2aa85fb

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build-container.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,11 @@ jobs:
109109
- name: Build and push Docker image
110110
env:
111111
SERVICESTACK_LICENSE: ${{ secrets.SERVICESTACK_LICENSE }}
112+
KAMAL_DEPLOY_HOST: ${{ env.KAMAL_DEPLOY_HOST }}
112113
run: |
113114
docker build \
114115
--build-arg SERVICESTACK_LICENSE="$SERVICESTACK_LICENSE" \
116+
--build-arg KAMAL_DEPLOY_HOST="$KAMAL_DEPLOY_HOST" \
115117
-t ghcr.io/${{ env.image_repository_name }}:latest \
116118
-f Dockerfile .
117119
docker push ghcr.io/${{ env.image_repository_name }}:latest

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ RUN dotnet publish TechStacks/TechStacks.csproj -c Release --no-restore -p:Publi
1717

1818
# 2. Build Next.js app
1919
FROM node:20-alpine AS next-build
20+
ARG KAMAL_DEPLOY_HOST
21+
ENV KAMAL_DEPLOY_HOST=${KAMAL_DEPLOY_HOST}
22+
2023
WORKDIR /app/client
2124

2225
COPY TechStacks.Client/package*.json ./

0 commit comments

Comments
 (0)