Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
17 changes: 17 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build and Deploy Docker Image

on:
push:
branches:
- staging
- main
jobs:
build_and_push_dockerhub:
uses: chukwukelu2023/automation-hub/.github/workflows/image_build_dockerhub.yaml@main
with:
context-path: .
tag-name: oluchioraekwe/grahgl-app:v.${{ github.run_number }}
registry_name: docker.io
secrets:
REGISTRY_PASSWORD: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
REGISTRY_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/package-lock.json
/node_modules
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:18-alpine

WORKDIR /app

COPY package.json .
COPY package-lock.json .

RUN npm install

COPY . .

EXPOSE 5000

CMD [ "npm","start" ]
Loading