From 497c3789e7939cddc9bfc83599b9e121bcd406bb Mon Sep 17 00:00:00 2001 From: David Jennes Date: Sun, 21 Apr 2024 02:43:40 +0200 Subject: [PATCH] Remove old BB pipeline --- bitbucket-pipelines.yml | 84 ----------------------------------------- post-deploy.sh | 0 2 files changed, 84 deletions(-) delete mode 100644 bitbucket-pipelines.yml delete mode 100644 post-deploy.sh diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml deleted file mode 100644 index 9192ec7..0000000 --- a/bitbucket-pipelines.yml +++ /dev/null @@ -1,84 +0,0 @@ -image: appwisebe/laravel-docker:8.2 - -options: - docker: true - -definitions: - caches: - composer-cache: /composer/cache - - services: - docker: - memory: 1024 - mysql: - image: mysql:8.0 - variables: - MYSQL_DATABASE: test_database - MYSQL_USER: test_user - MYSQL_PASSWORD: test_password - MYSQL_ROOT_PASSWORD: test_password - MYSQL_ALLOW_EMPTY_PASSWORD: 1 - - steps: - - step: &Test - name: Test - #image: appwisebe/laravel-docker:8.2 When using different root image, add test image here. - script: - - composer install - - npm run test-pipeline - services: - - mysql - - - step: &Deploy - name: Deploy to server - caches: - - composer-cache - script: - - composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts - - composer dump-autoload --optimize --classmap-authoritative - - >- - rsync -crltDzv . $DEPLOY_URL:www/htdocs --delete-delay - --exclude=.env - --exclude=.git - --include='public/index.php' - --exclude='public/*' - --exclude='public/storage' - --exclude=storage/logs - --exclude=storage/framework/sessions - --exclude=storage/framework/cache - --exclude=storage/oauth-private.key - --exclude=storage/oauth-public.key - - ssh $DEPLOY_URL sh www/htdocs/post-deploy.sh - -pipelines: - pull-requests: - '**': #or feature/*: - - step: - name: Test - deployment: test - <<: *Test - - branches: - development: - - step: - <<: *Deploy - name: Deploy to Development - deployment: development - - test: - - step: - <<: *Deploy - name: Deploy to Test - deployment: test - - staging: - - step: - <<: *Deploy - name: Deploy to Staging - deployment: staging - - production: - - step: - <<: *Deploy - name: Deploy to Production - deployment: production diff --git a/post-deploy.sh b/post-deploy.sh deleted file mode 100644 index e69de29..0000000