diff --git a/.github/workflows/production-deploy.yml b/.github/workflows/production-deploy.yml deleted file mode 100644 index bd322e5..0000000 --- a/.github/workflows/production-deploy.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: production-deploy-pipeline - -on: - push: - branches: - - master - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: SSH and Redeploy Production - uses: appleboy/ssh-action@v1.0.0 - with: - host: ${{ secrets.PROD_HOST }} - username: ${{ secrets.PROD_USERNAME }} - key: ${{ secrets.PROD_PRIVATE_KEY }} - port: ${{ secrets.SSH_PORT }} - script: | - cd rpgf4-pw-backend - docker-compose down -v - docker image prune -a --force - git checkout master - git reset --hard origin/master - git pull origin master - docker-compose build --no-cache - docker-compose up -d diff --git a/.github/workflows/rpgf4-production-deploy.yml b/.github/workflows/rpgf4-production-deploy.yml index bd322e5..c98ed2d 100644 --- a/.github/workflows/rpgf4-production-deploy.yml +++ b/.github/workflows/rpgf4-production-deploy.yml @@ -1,15 +1,15 @@ -name: production-deploy-pipeline +name: rf4-deploy-pipeline on: push: branches: - - master + - rf4 jobs: deploy: runs-on: ubuntu-latest steps: - - name: SSH and Redeploy Production + - name: SSH and Redeploy rf4 uses: appleboy/ssh-action@v1.0.0 with: host: ${{ secrets.PROD_HOST }} @@ -20,8 +20,8 @@ jobs: cd rpgf4-pw-backend docker-compose down -v docker image prune -a --force - git checkout master - git reset --hard origin/master - git pull origin master + git checkout rf4 + git reset --hard origin/rf4 + git pull origin rf4 docker-compose build --no-cache - docker-compose up -d + docker-compose up -d \ No newline at end of file diff --git a/.github/workflows/rpgf4-staging-deploy.yml b/.github/workflows/rpgf4-staging-deploy.yml index 3293428..6925a6f 100644 --- a/.github/workflows/rpgf4-staging-deploy.yml +++ b/.github/workflows/rpgf4-staging-deploy.yml @@ -1,15 +1,15 @@ -name: staging-deploy-pipeline +name: rf4-staging-deploy-pipeline on: push: branches: - - staging + - rf4-staging jobs: deploy: runs-on: ubuntu-latest steps: - - name: SSH and Redeploy Staging + - name: SSH and Redeploy rf4-staging uses: appleboy/ssh-action@v1.0.0 with: host: ${{ secrets.STAGING_HOST }} @@ -20,8 +20,8 @@ jobs: cd rpgf4-pw-backend docker-compose down -v docker image prune -a --force - git checkout staging - git reset --hard origin/staging - git pull origin staging + git checkout rf4-staging + git reset --hard origin/rf4-staging + git pull origin rf4-staging docker-compose build --no-cache - docker-compose up -d + docker-compose up -d \ No newline at end of file diff --git a/.github/workflows/staging-deploy.yml b/.github/workflows/staging-deploy.yml deleted file mode 100644 index 3293428..0000000 --- a/.github/workflows/staging-deploy.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: staging-deploy-pipeline - -on: - push: - branches: - - staging - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: SSH and Redeploy Staging - uses: appleboy/ssh-action@v1.0.0 - with: - host: ${{ secrets.STAGING_HOST }} - username: ${{ secrets.STAGING_USERNAME }} - key: ${{ secrets.STAGING_PRIVATE_KEY }} - port: ${{ secrets.SSH_PORT }} - script: | - cd rpgf4-pw-backend - docker-compose down -v - docker image prune -a --force - git checkout staging - git reset --hard origin/staging - git pull origin staging - docker-compose build --no-cache - docker-compose up -d