name: CI/CD Pipeline for Frontend on: push: branches: [ dev ] jobs: build_and_push_frontend: 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.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and Push Docker image for Frontend uses: docker/build-push-action@v2 with: context: ./client file: ./client/Dockerfile push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/dev_${{ secrets.DOCKERHUB_FRONTEND_REPO }}:latest - name: Lint Code run: | eslint . --rule "@typescript-eslint/ban-ts-comment: off"