Skip to content

Commit

Permalink
Merge pull request #85 from Mojacknong/fix_82/클라우드-이전
Browse files Browse the repository at this point in the history
Fix 82/클라우드 이전
  • Loading branch information
MinchoGreenT authored Aug 17, 2024
2 parents 9002e03 + e217668 commit ab6d574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ jobs:

- name: Docker build & push to dockerhub
run: |
docker build -f Dockerfile -t minchogt/farmus-spring .
docker push minchogt/farmus-spring
docker build -f Dockerfile -t modernfarmer/farmus-spring .
12 changes: 6 additions & 6 deletions .github/workflows/dev-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: cicd for development

on:
push:
branches: [ "dev" ]
branches: [ "dev", "fix_82/클라우드-이전" ]

jobs:
build:
Expand Down Expand Up @@ -46,9 +46,8 @@ jobs:

- name: Docker build & push to dockerhub
run: |
docker build -f Dockerfile -t minchogt/farmus-spring .
docker push minchogt/farmus-spring
# docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker build -f Dockerfile -t modernfarmer/farmus-spring .
docker push modernfarmer/farmus-spring
deploy:
needs: build
Expand All @@ -69,6 +68,7 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
envs: GITHUB_SHA
script: |
sudo docker pull minchogt/farmus-spring
./deploy.sh
sudo docker pull modernfarmer/farmus-spring
cd docker-compose
bash deploy.sh
docker image prune -f

0 comments on commit ab6d574

Please sign in to comment.