Skip to content

Commit

Permalink
Merge pull request TeamMajorLink#39 from TeamMajorLink/kimdavid0521-p…
Browse files Browse the repository at this point in the history
…atch-1

Update cicd.yml (레디스 옵션 추가)
  • Loading branch information
kimdavid0521 authored Aug 16, 2024
2 parents 98f600d + 091b1a2 commit e5bc39b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ jobs:
sudo docker stop ${{ secrets.DOCKERHUB_IMAGENAME }}
sudo docker rm ${{ secrets.DOCKERHUB_IMAGENAME }}
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGENAME }}
sudo docker run -it -d -p 8080:8080 --name ${{ secrets.DOCKERHUB_IMAGENAME }} -e TZ=Asia/Seoul ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGENAME }}
# redis
docker stop my-redis
docker rm my-redis
docker rmi redis
docker pull redis
docker network create my-network
docker run --name my-redis --network my-network -d redis
sudo docker run -it -d -p 8080:8080 --name ${{ secrets.DOCKERHUB_IMAGENAME }} -e TZ=Asia/Seoul ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGENAME }}

0 comments on commit e5bc39b

Please sign in to comment.