diff --git a/ci/tasks/deploy-mainnet.yml b/ci/tasks/deploy-mainnet.yml deleted file mode 100644 index 1a2c118d..00000000 --- a/ci/tasks/deploy-mainnet.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -platform: linux -image_resource: - type: registry-image - source: - repository: alpine - tag: 3 - -inputs: - - name: repo-liquidity-provider-server-mainnet - -outputs: - - name: out - -params: - SSH_DEPLOY_KEY: ((ssh-deploy)) - FLYOVER_SSH_KEY: ((ssh-ro-spoof-fling)) -run: - path: sh - args: - - -ceux - - | - ssh_deploy_keyfile=$(pwd)/ssh_deploy_key - flyover_ssh_keyfile=$(pwd)/flyover_ssh_key - out_message_file=$(pwd)/out/message.txt - - echo "Liquidity-provider-server deployment to mainnet" > $out_message_file - - umask 077 - echo "$SSH_DEPLOY_KEY" > $ssh_deploy_keyfile - echo "$FLYOVER_SSH_KEY" > $flyover_ssh_keyfile - umask 022 - - apk add -q --no-progress openssh ansible gnupg git - - eval $(ssh-agent) - ssh-add $ssh_deploy_keyfile $flyover_ssh_keyfile - mkdir ~/.ssh/ - touch ~/.ssh/known_hosts - ssh-keyscan flyover-01.aws-us-east-1.mainnet.flyover.rifcomputing.net >> ~/.ssh/known_hosts - ssh -o "StrictHostKeyChecking=no" -A ubuntu@flyover-01.aws-us-east-1.mainnet.flyover.rifcomputing.net sh -s << EOF - cd /home/ubuntu/liquidity-provider-server/docker-compose && git pull origin master && docker system prune -f && docker-compose -f docker-compose.yml -f loki-mainnet.yml --env-file .env.mainnet build --build-arg COMMIT_HASH="$(git rev-parse HEAD)" --no-cache && docker-compose -f docker-compose.yml -f loki-mainnet.yml --env-file .env.mainnet up --force-recreate -d - - EOF - - echo "Flyover Mainnet server: deployment complete" > $out_message_file diff --git a/ci/tasks/deploy.yml b/ci/tasks/deploy.yml deleted file mode 100644 index 34cc3fe5..00000000 --- a/ci/tasks/deploy.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -platform: linux -image_resource: - type: registry-image - source: - repository: alpine - tag: 3 - -inputs: - - name: repo-liquidity-provider-server-testnet - -outputs: - - name: out - -params: - SSH_DEPLOY_KEY: ((ssh-deploy)) - FLYOVER_SSH_KEY: ((ssh-ro-spoof-fling)) -run: - path: sh - args: - - -ceux - - | - ssh_deploy_keyfile=$(pwd)/ssh_deploy_key - flyover_ssh_keyfile=$(pwd)/flyover_ssh_key - out_message_file=$(pwd)/out/message.txt - - echo "Liquidity-provider-server deployment to testnet" > $out_message_file - - umask 077 - echo "$SSH_DEPLOY_KEY" > $ssh_deploy_keyfile - echo "$FLYOVER_SSH_KEY" > $flyover_ssh_keyfile - umask 022 - - apk add -q --no-progress openssh ansible gnupg git - - eval $(ssh-agent) - ssh-add $ssh_deploy_keyfile $flyover_ssh_keyfile - mkdir ~/.ssh/ - touch ~/.ssh/known_hosts - ssh-keyscan flyover-01-testnet.aws-us-east-1.testnet.flyover.rif.technology >> ~/.ssh/known_hosts - ssh -o "StrictHostKeyChecking=no" -A ubuntu@flyover-01-testnet.aws-us-east-1.testnet.flyover.rif.technology sh -s << EOF - cd /home/ubuntu/flyover-deploy/docker-compose && git pull origin Stable-Test && docker system prune -f && docker-compose -f docker-compose.yml -f loki-testnet.yml --env-file .env.testnet build --build-arg COMMIT_HASH="$(git rev-parse HEAD)" --no-cache && docker-compose -f docker-compose.yml -f loki-testnet.yml --env-file .env.testnet up --force-recreate -d - - EOF - - echo "Flyover Testnet server: deployment complete" > $out_message_file