Skip to content
Snippets Groups Projects
Commit 21570300 authored by rob's avatar rob
Browse files

Revert "Add separate development and production pipelines"

This reverts commit d823dcd9.
parent d823dcd9
No related branches found
No related tags found
3 merge requests!6Split CI/CD for prod and dev,!4Add runner tag to test/deploy stages of CI/CD,!2Add CI/CD to master
Pipeline #419081 waiting for manual action
......@@ -9,24 +9,7 @@ stages: # List of stages for jobs, and their order of execution
- test
- deploy
### Development ###
# Can run on any shared runner
dev-build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- npm install
- npm run build
unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- echo "Running unit tests..."
### Production ###
# Can only run on vm runner
prod-build-job: # This job runs in the build stage, which runs first.
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- npm ci
......@@ -42,8 +25,6 @@ unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- echo "Running unit tests..."
tags:
- prod-runner # Use the runner with correct tag to run this job
deploy-job: # This job runs in the deploy stage.
stage: deploy # It only runs when *all* jobs in the test stage complete successfully.
......@@ -56,6 +37,4 @@ deploy-job: # This job runs in the deploy stage.
artifacts:
paths:
- next.log # Keep output from deploy as artifact
tags:
- prod-runner # Use the runner with correct tag to run this job
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment