From f3abcdb3a0c372e996d8f9cb70c452a6f034c6ae Mon Sep 17 00:00:00 2001 From: Sunny Date: Sun, 18 Aug 2024 01:56:22 +0530 Subject: [PATCH] build CI added --- .github/deploy.yml | 29 ----------------------------- .github/workflows/build.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 29 deletions(-) delete mode 100644 .github/deploy.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/deploy.yml b/.github/deploy.yml deleted file mode 100644 index c2cbd96..0000000 --- a/.github/deploy.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Build and Deploy to Docker Hub - -on: - push: - branches: - - main -jobs: - build-and-push: - runs-on: ubuntu-latest - steps: - - name: check Out Repo - uses: actions/checkout@v2 - - - name: Log in to Docker Hub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and Push Docker image - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile.user - push: true - tags: swarnendug07/fluxcraft:v1 - - - name: Verify Pushed Image - run: docker pull swarnendug07/fluxcraft:v1 \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..21deb5f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build on PR +on: + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Install Deps + run: npm install + + - name: Lint Check + run: npm run lint \ No newline at end of file