Skip to content
.gitlab-ci.yml 534 B
Newer Older
nimrod's avatar
nimrod committed
---
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"]
  only: ["nimrod"]
nimrod's avatar
nimrod committed
  script:
    - cid="$(basename $(cat /proc/1/cpuset))"
nimrod's avatar
nimrod committed
    - docker pull registry.shore.co.il/presentation
nimrod's avatar
nimrod committed
    - >-
      docker run
      --rm
      --volumes-from "$cid"
      --volume "/var/www/www.shore.co.il/resume:/builds/nimrod/resume/output"
nimrod's avatar
nimrod committed
      --workdir "$PWD"
nimrod's avatar
nimrod committed
      registry.shore.co.il/presentation
nimrod's avatar
nimrod committed
      make
      DESTDIR=output
      --jobs=4
      --keep-going