Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bruk-lemma authored Jan 13, 2024
1 parent 5333536 commit f9e1297
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9e1297

Please sign in to comment.