Skip to content

Commit 53b8788

Browse files
committed
add CI build step for Docker image
1 parent 2d1521c commit 53b8788

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,14 @@ jobs:
3131
registry: ${{ env.REGISTRY }}
3232
username: ${{ env.DOCKER_USERNAME }}
3333
password: ${{ secrets.DOCKER_TOKEN }}
34+
35+
- name: Build for CI
36+
id: build-ci
37+
uses: docker/[email protected]
38+
with:
39+
context: ./src/ci/nestjs-project
40+
file: ./src/ci/nestjs-project/Dockerfile.prod
41+
push: false
42+
load: true # driver docker-container
43+
target: ci
44+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:ci

0 commit comments

Comments
 (0)