Skip to content

Commit e14871c

Browse files
committed
try docker run action
1 parent 841f63b commit e14871c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ jobs:
4444
cache-to: type=gha,mode=max
4545
provenance: false
4646

47-
- name: Test Run Docker Image
48-
run: |
49-
docker run -p 9000:8080 --rm --init ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:${{ github.sha }}
47+
- name: Run the build process with Docker
48+
uses: addnab/docker-run-action@v3
49+
with:
50+
image: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:${{ github.sha }}
51+
options: -p 9000:8080 --rm --init
5052

5153
- name: Test Lambda Endpoint
5254
run: |

0 commit comments

Comments
 (0)