From e52c863d09e0e1541c7f9ae419a9129cc8b11eca Mon Sep 17 00:00:00 2001 From: "Roxana-Daniela SCURTU (94501)" <roxana.scurtu@stud.acs.upb.ro> Date: Sat, 29 Mar 2025 13:38:54 +0000 Subject: [PATCH] Edit .gitlab-ci.yml --- .gitlab-ci.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 195d65e..9907582 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 + -- GitLab