Deployflöden + tester

Deploy:
Deploy görs med Bitbucket Pipelines mot staging och produktionsservar.
Det utförs även tester vid skapande av Pull Requests.
Servrarna ligger bakom brandvägg så Bitbuckets port range har fått läggas till
att accepteras att nå servarna.

Deploy sker via rsync över ssh.

Följande steg i pipelines körs/kan köras:

pipelines:
  custom: # Pipelines that can only be triggered manually
    manual-deploy-production:
      - step: *test-build-js-css
      - step: *composer-install
      - step: *test-phpcs
      - step: *deploy-production
    manual-deploy-staging:
      - step: *test-build-js-css
      - step: *composer-install
      - step: *test-phpcs
      - step: *deploy-staging
    manual-ssh-connection-test:
      - step: *test-ssh-connection
  pull-requests:
    '**': # runs as default for any branch not elsewhere defined
    - step: *test-build-js-css
    - step: *composer-install
    - step: *test-phpcs
  branches: # runs on every push of the branch
    main:
     - step: *test-build-js-css
     - step: *composer-install
     - step: *test-phpcs
     - step: *deploy-production
    develop:
      - step: *test-build-js-css
      - step: *composer-install
      - step: *test-phpcs
      - step: *deploy-staging

Tester:
De tester som utförs:


- Lokala tester:
Lokala tester körs vid commit via husky. https://typicode.github.io/husky/ där ovan beskrivna tester också körs.

0 Comments

You are not logged in. Any changes you make will be marked as anonymous.