diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 195d65e12ac7ede7a092753696635f88c88afad4..990758273d774a073a8a0e3f3805e1731da3cfa6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,8 +6,22 @@ # Note that environment variables can be set in several places # See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence stages: -- test -sast: + - build + - test + - deploy + +build: + stage: build + script: + - docker build -t my-app . + +test: stage: test -include: -- template: Security/SAST.gitlab-ci.yml + script: + - docker run my-app npm test + +deploy: + stage: deploy + script: + - docker push my-app +