Skip to content
.gitlab-ci.yml 759 B
Newer Older
nimrod's avatar
nimrod committed
---
nimrod's avatar
nimrod committed
include:
nimrod's avatar
nimrod committed
  - project: shore/ci-stuff
nimrod's avatar
nimrod committed
    file: templates/pre-commit.yml
nimrod's avatar
nimrod committed
  - project: shore/ci-stuff
nimrod's avatar
nimrod committed
    file: templates/docker.yml
nimrod's avatar
nimrod committed

build:
nimrod's avatar
nimrod committed
  extends: .compose-build
nimrod's avatar
nimrod committed
  tags: &tags [host01.shore.co.il]

pull:
  extends: .compose-pull
  tags: *tags
nimrod's avatar
nimrod committed

run:
nimrod's avatar
nimrod committed
  extends: .compose-run
nimrod's avatar
nimrod committed
  tags: *tags
nimrod's avatar
nimrod committed
    # yamllint disable rule:line-length
    - docker-compose exec mysql sh -c 'mysql_upgrade -u root "--password=$MYSQL_ROOT_PASSWORD" --default-character-set=utf8mb4'
nimrod's avatar
nimrod committed
    - docker-compose exec -u www-data nextcloud php occ db:add-missing-columns
    - docker-compose exec -u www-data nextcloud php occ db:add-missing-indices
    - docker-compose exec -u www-data nextcloud php occ db:add-missing-primary-keys
    # yamllint enable rule:line-length