Skip to content

Commit

Permalink
Update docker-image-builder.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amrevill authored and GitHub Enterprise committed Mar 19, 2025
1 parent 6c4867e commit 762a292
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/docker-image-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,15 @@ jobs:

steps:
- uses: actions/checkout@v4
# - name: Build the Docker image
# run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

# - name: Build Docker Image
# run: |
# docker build -t my-app:latest ./backend
# docker build -t my-app:latest .

- name: Build Backend Docker Image
run: docker build --network=host -t my-app:latest ./backend

# ✅ Stop & Remove Old Running Containers

- name: Stop & Remove Old Containers
run: |
docker stop my-app-container || true
docker rm my-app-container || true
# ✅ Run Docker Container with Latest Code
- name: Run Docker Container
run: |
docker run -d --name my-app-container -p 9090:8080 my-app:latest

0 comments on commit 762a292

Please sign in to comment.