diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 38b0aa67..555f603d 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -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