Skip to content

Commit

Permalink
CI builds using a node image from docker
Browse files Browse the repository at this point in the history
Update .gitlab-ci.yml file
  • Loading branch information
Alexandre Rancati-Palmer committed Nov 24, 2021
1 parent 6fae646 commit 3b12c75
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
image: node:14-alpine #import the image of node.js from docker

stages: # List of stages for jobs, and their order of execution
- build

build-job: # This job runs in the build stage, which runs first.
stage: build
tags:
- docker #defines docker as the runner for this job
script:
- echo "Start building"
- npm install #build the node code based on the package.json file
- echo "Build complete."

0 comments on commit 3b12c75

Please sign in to comment.