-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deploy.yml - fixed docker version
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,10 @@ jobs: | |
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build Docker image | ||
run: docker build -t anfal17/react-app:latest.4 . | ||
run: docker build -t anfal17/react-app:latest.5 . | ||
|
||
- name: Push Docker image to Docker Hub | ||
run: docker push anfal17/react-app:latest.4 | ||
run: docker push anfal17/react-app:latest.5 | ||
|
||
- name: SSH into EC2 and Deploy | ||
uses: appleboy/[email protected] | ||
|
@@ -37,7 +37,7 @@ jobs: | |
docker rm react-app || true | ||
# Pull the latest image from Docker Hub | ||
docker pull anfal17/react-app:latest.4 | ||
docker pull anfal17/react-app:latest.5 | ||
# Run the Docker container | ||
docker run -d --name react-app -p 3000:5173 anfal17/react-app:latest.4 | ||
docker run -d --name react-app -p 3000:5173 anfal17/react-app:latest.5 |