-
Notifications
You must be signed in to change notification settings - Fork 389
Add CI workflow for building and pushing Docker image #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
28ca3aa
90b62ce
3cfd82c
817f038
4656b54
5349ef2
2796cb6
4fef8ac
5ceb32f
cc36045
790118b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,43 @@ | ||||||||||||
| # Goal: Build the image for DevBoard Frontend and Push to Docker Hub, after linting the code | ||||||||||||
| name: CI | ||||||||||||
|
|
||||||||||||
| on: | ||||||||||||
| push: | ||||||||||||
| branches: [master] | ||||||||||||
|
|
||||||||||||
| jobs: | ||||||||||||
| code-lint: | ||||||||||||
| runs-on: ubuntu-latest | ||||||||||||
| steps: | ||||||||||||
| - name: Checkout Code | ||||||||||||
| uses: actions/checkout@v7 | ||||||||||||
|
|
||||||||||||
| - name: Setup Node.js | ||||||||||||
| uses: actions/setup-node@v4 | ||||||||||||
| with: | ||||||||||||
| node-version: 20 | ||||||||||||
| cache: "npm" # Automates dependency caching for faster builds | ||||||||||||
|
|
||||||||||||
| - name: Install Dependencies | ||||||||||||
| run: npm install | ||||||||||||
|
|
||||||||||||
| - name: Run Lint (Biome) | ||||||||||||
| run: npm run lint | ||||||||||||
|
coderabbitai[bot] marked this conversation as resolved.
|
||||||||||||
|
|
||||||||||||
| build-and-push: | ||||||||||||
| runs-on: ubuntu-latest | ||||||||||||
|
Comment on lines
+27
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, find the workflow file - note the comment mentions "workflow" but it's typically "workflows"
find .github -name "ci.yml" -o -name "*.yml" | head -20Repository: LondheShubham153/devboard Length of output: 93 🏁 Script executed: cat -n .github/workflow/ci.ymlRepository: LondheShubham153/devboard Length of output: 1420 Enforce lint-before-push with a job dependency.
Suggested fix build-and-push:
+ needs: code-lint
runs-on: ubuntu-latest📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
| steps: | ||||||||||||
| - name: Checkout code | ||||||||||||
| uses: actions/checkout@v7 | ||||||||||||
|
|
||||||||||||
| - name: Docker Setup [Login] | ||||||||||||
| uses: docker/login-action@v4 | ||||||||||||
| with: | ||||||||||||
| username: ${{ vars.DOCKERHUB_USERNAME }} | ||||||||||||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||||||||||||
|
|
||||||||||||
| - name: Docker Build and Push | ||||||||||||
| uses: docker/build-push-action@v7 | ||||||||||||
| with: | ||||||||||||
| push: true | ||||||||||||
| tags: ${{ vars.DOCKERHUB_USERNAME }}/devboard-fe-master:latest | ||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ name: CI | |
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| branches: [advanced] | ||
|
|
||
| jobs: | ||
| frontend: | ||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.