Skip to content
.gitlab-ci.yml 641 B
Newer Older
nimrod's avatar
nimrod committed
---
variables:
  GIT_SUBMODULE_STRATEGY: recursive

nimrod's avatar
nimrod committed
include:
  - project: shore/ci-templates
    file: templates/pre-commit.yml

nimrod's avatar
nimrod committed
build:
nimrod's avatar
nimrod committed
  stage: deploy
nimrod's avatar
nimrod committed
  tags: ["host01.shore.co.il"]
nimrod's avatar
nimrod committed
  only:
    refs:
      - master
nimrod's avatar
nimrod committed
  script:
    - cid="$(basename $(cat /proc/1/cpuset))"
    - docker pull adarnimrod/ci-images:python3
    - >-
      docker run
      --rm
      --env "LANG=C.UTF-8"
      --volumes-from "$cid"
      --volume "/var/www/www.shore.co.il/blog:/builds/nimrod/blog/output"
nimrod's avatar
nimrod committed
      --workdir "$PWD"
nimrod's avatar
nimrod committed
      adarnimrod/ci-images:python3
nimrod's avatar
nimrod committed
      /bin/sh -xc
      "pipenv --python=python3 install && pipenv run clean && pipenv run build"