Skip to content

Commit 7665cb1

Browse files
committed
Merge branch 'main' of https://github.com/bitwise74/vid.sh
2 parents 69f239a + 7513fc4 commit 7665cb1

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.github/workflows/docker-image.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,28 @@ on:
77
branches: [ "main" ]
88

99
jobs:
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

0 commit comments

Comments
 (0)