Commit 4a38e278 authored by nimrod's avatar nimrod
Browse files

DRY.

Include in the templates. Also, for Docker deployments, run the tests
(pre-commit) first and then build the images.
parent 581e426a
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
---
include:
  - project: shore/ci-templates
    file: templates/pre-commit.yml

bats:
  stage: test
  image: adarnimrod/ci-images:bats
+11 −0
Original line number Diff line number Diff line
---
stages:
  - .pre
  - test
  - build
  - deploy
  - .post

include:
  - project: shore/ci-templates
    file: templates/pre-commit.yml

.compose-build:
  image: adarnimrod/ci-images:docker
  stage: build
+4 −0
Original line number Diff line number Diff line
---
include:
  - project: shore/ci-templates
    file: templates/gitlab-release.yml

pypi-upload:
  stage: deploy
  tags: [ns4.shore.co.il]