File tree Expand file tree Collapse file tree 1 file changed +19
-11
lines changed
Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change 77 branches : [ "main" ]
88
99jobs :
10- build-and-push :
10+ lint-frontend :
1111 runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : oven-sh/setup-bun@v1
15+ - run : cd frontend && bun i && bun run check && bun run lint && bun run format
1216
17+ build-and-push :
18+ runs-on : ubuntu-latest
19+ needs : [lint-frontend]
20+ if : github.event_name == 'push'
1321 steps :
14- - uses : actions/checkout@v4
22+ - uses : actions/checkout@v4
1523
16- - name : Log in to Docker Hub
17- uses : docker/login-action@v2
18- with :
19- username : ${{ secrets.DOCKERHUB_USERNAME }}
20- password : ${{ secrets.DOCKERHUB_TOKEN }}
24+ - name : Log in to Docker Hub
25+ uses : docker/login-action@v2
26+ with :
27+ username : ${{ secrets.DOCKERHUB_USERNAME }}
28+ password : ${{ secrets.DOCKERHUB_TOKEN }}
2129
22- - name : Build the Docker image
23- run : docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_USERNAME }}/vidsh:latest
30+ - name : Build the Docker image
31+ run : docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_USERNAME }}/vidsh:latest
2432
25- - name : Push the Docker image
26- run : docker push ${{ secrets.DOCKERHUB_USERNAME }}/vidsh:latest
33+ - name : Push the Docker image
34+ run : docker push ${{ secrets.DOCKERHUB_USERNAME }}/vidsh:latest
You can’t perform that action at this time.
0 commit comments