Skip to content
.gitlab-ci.yml 660 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"]
nimrod's avatar
nimrod committed
  script:
nimrod's avatar
nimrod committed
    # yamllint disable-line rule:line-length
nimrod's avatar
nimrod committed
    - cid="$(basename "$(dirname "$(awk '/hostname/ {print $4}' /proc/1/mountinfo)")")"
nimrod's avatar
nimrod committed
    - docker pull registry.shore.co.il/ci-images:python3
nimrod's avatar
nimrod committed
    - >-
      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
      registry.shore.co.il/ci-images:python3
nimrod's avatar
nimrod committed
      /bin/sh -xc
nimrod's avatar
nimrod committed
      "pipenv --python=python3 install && pipenv run clean && pipenv run build"