Skip to content

Commit

Permalink
Merge pull request nevercodealone#80 from rogoit/main
Browse files Browse the repository at this point in the history
Fix CYPRESS_BASE URL and remove cache after live deployment.
  • Loading branch information
rogoit authored Dec 25, 2023
2 parents be9c349 + 0bbdc9a commit d0a7a65
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ trigger_test:
branch: main
strategy: depend
variables:
BASE_URL: https://nevercodealone.projects.nevercodealone.de
CYPRESS_BASE_URL: https://nevercodealone.projects.nevercodealone.de

build:
stage: build
before_script:
Expand Down Expand Up @@ -84,14 +84,16 @@ deploy_live:
only:
- merge_request
- main
needs:
needs:
- trigger_test
image: docker:latest
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
script:
- docker compose -f docker-compose.conversis.yml -p $SHORTCODE1 up -d --remove-orphans
- docker exec $SHORTCODE1-web chown www-data:www-data -R /var/www/html/var/
after_script:
- docker exec $SHORTCODE1-web rm -rf /var/www/html/var/cache/*
environment:
name: live
url: https://$URL
Expand Down

0 comments on commit d0a7a65

Please sign in to comment.