diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cfd4972..1ace0b6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -49,7 +49,7 @@ jobs: run: | python3 -m pip install awscli --upgrade - - name: Install AWS Elastic Beanstalk ClI + - name: Install AWS Elastic Beanstalk CLI run: | python3 -m pip install awsebcli --upgrade @@ -95,7 +95,8 @@ jobs: AWS_REGION: us-east-1 APP_NAME: maestro run: | - printf "n" | eb init $APP_NAME --region $AWS_REGION + [[ -d .elasticbeanstalk/ ]] && rm -R .elasticbeanstalk/ + printf "1\nn" | eb init $APP_NAME --region $AWS_REGION eb use $APP_NAME-$ENV echo -e "deploy:\n artifact: deploy.zip" >> .elasticbeanstalk/config.yml eb deploy diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8927609..6095edf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,8 +3,6 @@ on: pull_request: branches: - dev - - stg - - main jobs: test: @@ -17,15 +15,18 @@ jobs: run: | python3 -m pip install docker-compose --upgrade - - name: Build - env: - ENV: ${{ steps.extract_environment.outputs.result }} - IMAGE_TAG: latest - run: | - export ENV=test - docker-compose -f build.docker-compose.yml build + - name: Build + env: + ENV: test + IMAGE_TAG: test + run: | + export ENV=test + docker-compose -f build.docker-compose.yml build - - name: Run Test - run: | - export ENV=test - docker-compose run --rm --entrypoint="npm run test" maestro + - name: Run Test + env: + ENV: test + IMAGE_TAG: test + run: | + export ENV=test + docker-compose run --rm --entrypoint="npm run test" maestro diff --git a/.releaserc.json b/.releaserc.json index bf1c914..e436ceb 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -30,16 +30,10 @@ ] } ], - [ - "@semantic-release/changelog", - { - "changelogFile": "CHANGELOG.md" - } - ], "@semantic-release/github", [ "@semantic-release/git", { - "assets": ["package.json", "CHANGELOG.md"], + "assets": ["package.json"], "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } ] diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 05df0c6..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,24 +0,0 @@ -# 1.0.0-dev.1 (2022-02-08) - - -### Fix - -* Image Tag ([067ef4c](https://github.com/dadosfera/maestro/commit/067ef4cc61cf09256493126df4be9365b235d905)) -* Image Tag ([a3d62b7](https://github.com/dadosfera/maestro/commit/a3d62b7098f974d488a9b4bf4795ebf7c9694c8c)) - -### New - -* Adding semantic versioning ([6a5294c](https://github.com/dadosfera/maestro/commit/6a5294c68bcd0794ecfa52923763468ea48ff7ba)) -* Init Release ([4cc70a8](https://github.com/dadosfera/maestro/commit/4cc70a8a53d71828d1c644af56f71851e2a7ed1f)) -* release ([27cdeb4](https://github.com/dadosfera/maestro/commit/27cdeb4d2d675ce957ca5342a25f846ab36b71d4)) -* release ([ce97a1d](https://github.com/dadosfera/maestro/commit/ce97a1df7885ee0c57031e9abedb01b238d89fb2)) -* Test new release ([666cbda](https://github.com/dadosfera/maestro/commit/666cbda32f5166dcbe7e2e28de29080be4058f14)) -* Test semantic ([f7f5dae](https://github.com/dadosfera/maestro/commit/f7f5dae821573b8395351c99ee94df7d1857f02c)) -* Test semantic ([e70d914](https://github.com/dadosfera/maestro/commit/e70d9149057983fba71d25d8fbf9134ea3bb881c)) - -### Update - -* Comment test ([73068a2](https://github.com/dadosfera/maestro/commit/73068a254824f28a6c11740a3312d9a52cbca06c)) -* Removing github token ([fcd0d19](https://github.com/dadosfera/maestro/commit/fcd0d19c9af049079970e7fa43869d6664a97549)) -* Using dev branch ([f3e1881](https://github.com/dadosfera/maestro/commit/f3e1881c57cff5cfaca38466a9d6bc88ff7e2c5d)) -* Using image_tag semantic ([c7f5cd4](https://github.com/dadosfera/maestro/commit/c7f5cd475e43d3cea1a06e46c0651345b2f35e4b))