Skip to content

Commit

Permalink
pipeline(): remove git commands from deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanIOV committed Aug 7, 2024
1 parent da60669 commit ce48cf7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
8 changes: 2 additions & 6 deletions ci/tasks/deploy_mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ run:
wget --quiet https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.amd64 -O /usr/bin/sops
chmod +x /usr/bin/sops
cd repo-twowp-api-mainnet
git_tag=$(git describe --tags)
cd ..
echo "2wp-api: Tag: $git_tag - deployment to mainnet" > $out_message_file
echo "2wp-api: Docker Tag: mainnet - deployment to mainnet" > $out_message_file
sops_keyfile=$(pwd)/sops_key
ssh_deploy_keyfile=$(pwd)/ssh_deploy_key
Expand All @@ -51,4 +47,4 @@ run:
cd repo-iac-ng/ansible
ansible-playbook -i inventory -e ansible_ssh_extra_args=-oForwardAgent=yes -l twowp_app_api_mainnet --extra-vars="twowp_api_api_version=$git_tag" deploy-2wp-app-api.yml
ansible-playbook -i inventory -e ansible_ssh_extra_args=-oForwardAgent=yes -l twowp_app_api_mainnet --extra-vars="twowp_api_api_version=mainnet" deploy-2wp-app-api.yml
8 changes: 2 additions & 6 deletions ci/tasks/deploy_staging_mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ run:
wget --quiet https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.amd64 -O /usr/bin/sops
chmod +x /usr/bin/sops
cd repo-twowp-api-staging-mainnet
git_tag=$(git describe --tags)
cd ..
echo "2wp-api: Tag: $git_tag - deployment to staging-mainnet" > $out_message_file
echo "2wp-api: Docker Tag: staging-mainnet - deployment to staging-mainnet" > $out_message_file
sops_keyfile=$(pwd)/sops_key
ssh_deploy_keyfile=$(pwd)/ssh_deploy_key
Expand All @@ -51,4 +47,4 @@ run:
cd repo-iac-ng/ansible
ansible-playbook -i inventory -e ansible_ssh_extra_args=-oForwardAgent=yes -l twowp_app_api_staging_mainnet --extra-vars="twowp_api_api_version=$git_tag" deploy-2wp-app-api.yml
ansible-playbook -i inventory -e ansible_ssh_extra_args=-oForwardAgent=yes -l twowp_app_api_staging_mainnet --extra-vars="twowp_api_api_version=staging-mainnet" deploy-2wp-app-api.yml
2 changes: 1 addition & 1 deletion ci/tasks/deploy_staging_testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ run:
cd repo-iac-ng/ansible
ansible-playbook -i inventory -e ansible_ssh_extra_args=-oForwardAgent=yes -l twowp_app_api_staging_testnet --extra-vars="twowp_api_api_version=qa" deploy-2wp-app-api.yml
ansible-playbook -i inventory -e ansible_ssh_extra_args=-oForwardAgent=yes -l twowp_app_api_staging_testnet --extra-vars="twowp_api_api_version=staging-testnet" deploy-2wp-app-api.yml
8 changes: 2 additions & 6 deletions ci/tasks/deploy_testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ run:
wget --quiet https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.amd64 -O /usr/bin/sops
chmod +x /usr/bin/sops
cd repo-twowp-api-testnet
git_tag=$(git describe --tags)
cd ..
echo "2wp-api: Tag: $git_tag - deployment to testnet" > $out_message_file
echo "2wp-api: Docker Tag: testnet - deployment to testnet" > $out_message_file
sops_keyfile=$(pwd)/sops_key
ssh_deploy_keyfile=$(pwd)/ssh_deploy_key
Expand All @@ -51,4 +47,4 @@ run:
cd repo-iac-ng/ansible
ansible-playbook -i inventory -e ansible_ssh_extra_args=-oForwardAgent=yes -l twowp_app_api_testnet --extra-vars="twowp_api_api_version=$git_tag" deploy-2wp-app-api.yml
ansible-playbook -i inventory -e ansible_ssh_extra_args=-oForwardAgent=yes -l twowp_app_api_testnet --extra-vars="twowp_api_api_version=testnet" deploy-2wp-app-api.yml

0 comments on commit ce48cf7

Please sign in to comment.