Skip to content
.gitlab-ci.yml 527 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
build:
nimrod's avatar
nimrod committed
  stage: deploy
nimrod's avatar
nimrod committed
  tags: ["ns4.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