Skip to content

Commit

Permalink
disable: auto deploy to vms
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Dec 2, 2024
1 parent 02a6346 commit 14a9c87
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,46 +196,46 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

deploy-development:
name: Deploy to development VM
environment:
name: development
needs: build-and-push-docker-images
runs-on: ubuntu-latest

steps:
- name: copy ssh key
env:
SSH_KEY: ${{ secrets.OPERANDI_SSH_KEY }}
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/key
chmod 600 ~/.ssh/key
- name: deploy
env:
SSH_USER: ${{ secrets.OPERANDI_SSH_USER }}
SSH_HOST: ${{ secrets.OPERANDI_SSH_HOST_DEV }}
run: ssh $SSH_USER@$SSH_HOST -o StrictHostKeyChecking=no -i ~/.ssh/key /home/$SSH_USER/operandi/start-operandi-docker.sh

deploy-production:
name: Deploy to live VM
environment:
name: production
needs: build-and-push-docker-images
runs-on: ubuntu-latest

steps:
- name: copy ssh key
env:
SSH_KEY: ${{ secrets.OPERANDI_SSH_KEY }}
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/key
chmod 600 ~/.ssh/key
- name: deploy
env:
SSH_USER: ${{ secrets.OPERANDI_SSH_USER }}
SSH_HOST: ${{ secrets.OPERANDI_SSH_HOST_PROD }}
run: ssh $SSH_USER@$SSH_HOST -o StrictHostKeyChecking=no -i ~/.ssh/key /home/$SSH_USER/start-operandi-docker.sh
# deploy-development:
# name: Deploy to development VM
# environment:
# name: development
# needs: build-and-push-docker-images
# runs-on: ubuntu-latest
#
# steps:
# - name: copy ssh key
# env:
# SSH_KEY: ${{ secrets.OPERANDI_SSH_KEY }}
# run: |
# mkdir -p ~/.ssh/
# echo "$SSH_KEY" > ~/.ssh/key
# chmod 600 ~/.ssh/key
#
# - name: deploy
# env:
# SSH_USER: ${{ secrets.OPERANDI_SSH_USER }}
# SSH_HOST: ${{ secrets.OPERANDI_SSH_HOST_DEV }}
# run: ssh $SSH_USER@$SSH_HOST -o StrictHostKeyChecking=no -i ~/.ssh/key /home/$SSH_USER/operandi/start-operandi-docker.sh

# deploy-production:
# name: Deploy to live VM
# environment:
# name: production
# needs: build-and-push-docker-images
# runs-on: ubuntu-latest
#
# steps:
# - name: copy ssh key
# env:
# SSH_KEY: ${{ secrets.OPERANDI_SSH_KEY }}
# run: |
# mkdir -p ~/.ssh/
# echo "$SSH_KEY" > ~/.ssh/key
# chmod 600 ~/.ssh/key
#
# - name: deploy
# env:
# SSH_USER: ${{ secrets.OPERANDI_SSH_USER }}
# SSH_HOST: ${{ secrets.OPERANDI_SSH_HOST_PROD }}
# run: ssh $SSH_USER@$SSH_HOST -o StrictHostKeyChecking=no -i ~/.ssh/key /home/$SSH_USER/start-operandi-docker.sh

0 comments on commit 14a9c87

Please sign in to comment.