From 0f599bc03b16e677e7796af0cf9d0bd706432631 Mon Sep 17 00:00:00 2001 From: hburn7 Date: Thu, 30 Nov 2023 15:22:09 -0500 Subject: [PATCH] staging deploy --- .github/workflows/staging-deploy.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/staging-deploy.yml b/.github/workflows/staging-deploy.yml index 20b44ee..12b565c 100644 --- a/.github/workflows/staging-deploy.yml +++ b/.github/workflows/staging-deploy.yml @@ -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