diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml deleted file mode 100644 index f823b1a..0000000 --- a/.gitlab-ci.yaml +++ /dev/null @@ -1,19 +0,0 @@ -stages: - - build - - deploy - -before_script: - - echo "Starting..." - -after_script: - - echo "Done!" - -build: - stage: build - script: - - docker build -t sprint . - -deploy: - deploy: test - script: - - docker-compose up -d diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bf2af1f..5f2b1e3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,41 +1,19 @@ -# This file is a template, and might need editing before it works on your project. -# To contribute improvements to CI/CD templates, please follow the Development guide at: -# https://docs.gitlab.com/ee/development/cicd/templates.html -# This specific template is located at: -# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Bash.gitlab-ci.yml - -# See https://docs.gitlab.com/ee/ci/yaml/index.html for all available options - -# you can delete this line if you're not using Docker -image: busybox:latest +stages: + - build + - deploy before_script: - - echo "Before script section" - - echo "For example you might run an update here or install a build dependency" - - echo "Or perhaps you might print out some debugging details" + - echo "Starting..." after_script: - - echo "After script section" - - echo "For example you might do some cleanup here" + - echo "Done!" -build1: +build: stage: build script: - - echo "Do your build here" + - docker build -t sprint . -test1: - stage: test - script: - - echo "Do a test here" - - echo "For example run a test suite" - -test2: - stage: test - script: - - echo "Do another parallel test here" - - echo "For example run a lint test" - -deploy1: +deploy: stage: deploy script: - - echo "Do your deploy here" + - docker-compose up -d