Skip to content

Commit

Permalink
[fix] 도커허브 레포지토리 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
MinchoGreenT committed Aug 16, 2024
1 parent b403471 commit 555d8e5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 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,6 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
envs: GITHUB_SHA
script: |
sudo docker pull minchogt/farmus-spring
sudo docker pull modernfarmer/farmus-spring
./deploy.sh
docker image prune -f

0 comments on commit 555d8e5

Please sign in to comment.