From 3bbd48894b7e0c4b7b2f58b4a0366d569599dd98 Mon Sep 17 00:00:00 2001 From: "rodrigo.zamboni" Date: Thu, 24 Mar 2022 12:08:08 -0300 Subject: [PATCH] CI: Fix deploy --- .elasticbeanstalk/config.yml | 19 +++++++++++++++++++ .github/workflows/deploy.yml | 5 ----- .gitignore | 6 ------ 3 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 .elasticbeanstalk/config.yml diff --git a/.elasticbeanstalk/config.yml b/.elasticbeanstalk/config.yml new file mode 100644 index 0000000..8353597 --- /dev/null +++ b/.elasticbeanstalk/config.yml @@ -0,0 +1,19 @@ +branch-defaults: + alpha: + environment: null +global: + application_name: maestro + branch: null + default_ec2_keyname: null + default_platform: Docker running on 64bit Amazon Linux 2 + default_region: us-east-1 + include_git_submodules: true + instance_profile: null + platform_name: null + platform_version: null + profile: null + repository: null + sc: git + workspace_type: Application +deploy: + artifact: deploy.zip diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1a6d22f..72d3023 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -50,22 +50,18 @@ jobs: if: steps.semantic.outputs.new_release_published == 'true' run: | python3 -m pip install --upgrade pip - ls -a - name: Install Docker Compose if: steps.semantic.outputs.new_release_published == 'true' run: | python3 -m pip install docker-compose --upgrade - ls -a - name: Install AWS CLI if: steps.semantic.outputs.new_release_published == 'true' run: | python3 -m pip install awscli --upgrade - ls -a - name: Install AWS Elastic Beanstalk CLI if: steps.semantic.outputs.new_release_published == 'true' run: | python3 -m pip install awsebcli --upgrade - ls -a - name: Configure AWS Region if: steps.semantic.outputs.new_release_published == 'true' uses: aws-actions/configure-aws-credentials@v1 @@ -76,7 +72,6 @@ jobs: if: steps.semantic.outputs.new_release_published == 'true' shell: bash run: | - ls -a if [ ${GITHUB_REF} == "refs/heads/main" ]; then echo "##[set-output name=result;]$(echo "production")" else diff --git a/.gitignore b/.gitignore index f9b894d..602e2e3 100644 --- a/.gitignore +++ b/.gitignore @@ -37,10 +37,4 @@ lerna-debug.log* # Ignore .env files *.env -# Elastic Beanstalk Files -.elasticbeanstalk/* -!.elasticbeanstalk/*.cfg.yml -!.elasticbeanstalk/*.global.yml - - .env \ No newline at end of file