Skip to content

Commit

Permalink
Merge pull request #29 from PedroTroller/build/rebase-main
Browse files Browse the repository at this point in the history
build: fix release workflow
  • Loading branch information
PedroTroller authored Nov 4, 2020
2 parents 9a007cd + fceecfa commit c26299b
Showing 1 changed file with 41 additions and 6 deletions.
47 changes: 41 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
docker-compose exec dev composer install
docker-compose exec dev vendor/bin/behat
release-test:
release-pr:
machine:
docker_layer_caching: false
steps:
Expand All @@ -43,7 +43,7 @@ jobs:
npm install
node_modules/.bin/semantic-release --dry-run
release:
release-beta:
machine:
docker_layer_caching: false
steps:
Expand All @@ -54,6 +54,9 @@ jobs:
- docker/install-docker
- docker/install-docker-compose
- docker/check
- run: |
git fetch --all
git rebase origin main
- run: |
docker-compose pull prod
docker-compose build prod
Expand All @@ -63,19 +66,51 @@ jobs:
npm install
node_modules/.bin/semantic-release --ci false
release-main:
machine:
docker_layer_caching: false
steps:
- run: |
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- checkout
- docker/install-docker
- docker/install-docker-compose
- docker/check
- run: |
docker-compose pull prod
docker-compose build prod
docker-compose up --detach prod
- run: |
nvm install 15.0.1
npm install
node_modules/.bin/semantic-release
workflows:
version: 2
workflow:
jobs:
- tests
- release-test
- release:
- release-pr:
requires:
- tests
- release-test
filters:
branches:
only:
ignore:
- main
- beta
- release-beta:
requires:
- tests
filters:
branches:
only:
- beta
- release-main:
requires:
- tests
filters:
branches:
only:
- main

0 comments on commit c26299b

Please sign in to comment.