Skip to content

Commit

Permalink
update secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Wcc723 committed Oct 4, 2023
1 parent 23403da commit 8acfecb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
- name: Update known_hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan ${{HOST_NAME}} >> ~/.ssh/known_hosts
ssh-keyscan ${{secrets.HOST_NAME}} >> ~/.ssh/known_hosts
- name: Copy docker-compose.yml to remote server
run: |
scp ./docker-compose.yml root@${{HOST_NAME}}:/root/docker-compose.yml
scp ./docker-compose.yml root@${{secrets.HOST_NAME}}:/root/docker-compose.yml
- name: Deploy with Docker Compose
run: |
ssh root@${{HOST_NAME}} "docker-compose -f /root/docker-compose.yml up -d"
ssh root@${{secrets.HOST_NAME}} "docker-compose -f /root/docker-compose.yml up -d"
env:
ENV_VARIABLE: ${{ secrets.ENV_VARIABLE }}
MONGO_ROOT_USERNAME: ${{ secrets.MONGO_ROOT_USERNAME }}
Expand Down

0 comments on commit 8acfecb

Please sign in to comment.