Skip to content

Commit

Permalink
Merge pull request #108 from Kusitms-29th-ASAP/fix/ci-cd
Browse files Browse the repository at this point in the history
ci cd 수정
  • Loading branch information
sominyun authored Jun 24, 2024
2 parents 5975971 + aac8b0e commit 4113f83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ jobs:
- name: config environment
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.NCP_HOST }}
username: ${{ secrets.NCP_USERNAME }}
key: ${{ secrets.NCP_SSH_KEY }}
host: ${{ secrets.OCI_HOST }}
username: ${{ secrets.OCI_USERNAME }}
key: ${{ secrets.OCI_SSH_KEY }}
script: |
sudo rm -rf .env
touch .env
Expand Down Expand Up @@ -134,9 +134,9 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAME: ${{ secrets.IMAGE_NAME }}
with:
host: ${{ secrets.NCP_HOST }}
username: ${{ secrets.NCP_USERNAME }}
key: ${{ secrets.NCP_SSH_KEY }}
host: ${{ secrets.OCI_HOST }}
username: ${{ secrets.OCI_USERNAME }}
key: ${{ secrets.OCI_SSH_KEY }}
envs: VERSION, DOCKER_REGISTRY, DOCKER_USERNAME, DOCKER_PASSWORD, IMAGE_NAME
script: |
echo "new application version is $VERSION"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker_compose_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- name: copy docker compose file
uses: appleboy/scp-action@master
with:
host: ${{ secrets.NCP_HOST }}
username: ${{ secrets.NCP_USERNAME }}
host: ${{ secrets.OCI_HOST }}
username: ${{ secrets.OCI_USERNAME }}
source: ".deploy/docker-compose.yml"
target: "/root"
strip_components: 2

0 comments on commit 4113f83

Please sign in to comment.