Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 82/클라우드 이전 #85

Merged
merged 4 commits into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading