Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
add ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MEZ901 committed Mar 25, 2024
1 parent ae51667 commit 88a481d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI/CD

on:
push:
branches:
- main
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install Dependencies
run: npm install

- name: Run Tests
run: npm test

- name: Build and Push Docker image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/iam-fr-edition:latest -f docker/Dockerfile .
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_HUB_TOKEN }}
docker push ${{ secrets.DOCKER_USERNAME }}/iam-fr-edition:latest
deploy:
needs: build
runs-on: ubuntu-latest

steps:
- name: Deploy to Production
run: |
# The delpoment script is not implemented yet

0 comments on commit 88a481d

Please sign in to comment.