Skip to content

Commit

Permalink
staging deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
hburn7 committed Nov 30, 2023
1 parent c74a9aa commit 0f599bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ jobs:
ref: staging
- name: Create .env files
run: |
echo "${{ secrets.PROD_APP_ENV }}" > .env
echo "${{ secrets.STAGING_APP_ENV }}" > .env
- name: Copy files to server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.PROD_SSH_HOST }}
username: ${{ secrets.PROD_SSH_USER }}
key: ${{ secrets.PROD_SSH_KEY }}
host: ${{ secrets.STAGING_SSH_HOST }}
username: ${{ secrets.STAGING_SSH_USER }}
key: ${{ secrets.STAGING_SSH_KEY }}
source: ".env"
target: "~/otr-web/"
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.PROD_SSH_HOST }}
username: ${{ secrets.PROD_SSH_USER }}
key: ${{ secrets.PROD_SSH_KEY }}
host: ${{ secrets.STAGING_SSH_HOST }}
username: ${{ secrets.STAGING_SSH_USER }}
key: ${{ secrets.STAGING_SSH_KEY }}
script: |
docker pull stagecodes/otr-web-staging:latest
docker stop otr-web-staging || true
Expand Down

0 comments on commit 0f599bc

Please sign in to comment.