Skip to content

Commit

Permalink
Sample
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte committed Sep 30, 2024
1 parent e668af3 commit 0a9094b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ CODEOWNERS
*.sh
*.txt
.gitignore
Dockerfile
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:20

WORKDIR /app

COPY package*.json ./

RUN npm ci

COPY . .

CMD ["npm", "run", "test"]
22 changes: 22 additions & 0 deletions codefresh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '1.0'
stages:
- prepare
- build
- test

steps:
clone:
title: Cloning repository
type: git-clone
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
revision: '${{CF_REVISION}}'
stage: prepare

build_docker_image:
title: Building Docker image
type: build
image_name: '${{CF_REPO_NAME}}'
working_directory: '${{CF_REPO_NAME}}'
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
dockerfile: Dockerfile
stage: build

0 comments on commit 0a9094b

Please sign in to comment.