From f9e1297c6ef872b00da58edc56de9849c8c55fb8 Mon Sep 17 00:00:00 2001 From: Bruk Lemma <84085735+bruk-lemma@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:25:02 +0300 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73f279a6b..6c200c26c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,13 +28,16 @@ jobs: - name: List JAR files in build/libs run: ls build/libs/ - # New step to create the docker-context directory if it doesn't exist - name: Create Docker context directory run: mkdir -p ./docker-context/ - name: Copy JAR file to Docker context run: cp build/libs/*.jar ./docker-context/ + # New step to list the contents of the Docker context directory + - name: List contents of Docker context directory + run: ls -al ./docker-context/ + - name: Build and Push Docker Image run: | docker build -t bruklemma/java-demo-app ./docker-context