Skip to content

Commit 976bd7e

Browse files
committed
Update build-container.yml
1 parent 33aeacb commit 976bd7e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/build-container.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,10 @@ jobs:
9696
- name: Build and push Docker image
9797
env:
9898
SERVICESTACK_LICENSE: ${{ secrets.SERVICESTACK_LICENSE }}
99-
KAMAL_DEPLOY_HOST: ${{ env.KAMAL_DEPLOY_HOST }}
100-
SERVICE: ${{ env.SERVICE }}
99+
KAMAL_DEPLOY_HOST: ${{ secrets.KAMAL_DEPLOY_HOST }}
101100
run: |
102-
docker build \
103-
--build-arg SERVICESTACK_LICENSE="$SERVICESTACK_LICENSE" \
104-
--build-arg KAMAL_DEPLOY_HOST="$KAMAL_DEPLOY_HOST" \
105-
--build-arg SERVICE="$SERVICE" \
106-
-t ${{ env.IMAGE }}:latest \
107-
-f Dockerfile .
108-
docker push ${{ env.IMAGE }}:latest
101+
dotnet publish --os linux --arch x64 -c Release \
102+
-p:ContainerRepository=${{ env.IMAGE }} \
103+
-p:ContainerRegistry=ghcr.io -p:ContainerImageTags=latest \
104+
-p:ContainerPort=80 \
105+
-p:ContainerEnvironmentVariable="SERVICESTACK_LICENSE=${{ env.SERVICESTACK_LICENSE }}"

0 commit comments

Comments
 (0)