Skip to content

Commit bf2ab25

Browse files
committed
Merge branch 'main' into develop
2 parents 671c800 + 9d01bf6 commit bf2ab25

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/dev-cd.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- "**"
88

99
jobs:
10-
deploy:
10+
build:
1111
runs-on: ubuntu-24.04
1212
steps:
1313
- name: Checkout source
@@ -21,10 +21,18 @@ jobs:
2121

2222
- name: Setup Gradle
2323
uses: gradle/actions/setup-gradle@v3
24+
with:
25+
cache-read-only: false
2426

2527
- name: Build project
2628
run: ./gradlew clean build
2729

30+
push:
31+
needs: build
32+
runs-on: ubuntu-24.04
33+
steps:
34+
- name: Checkout source
35+
uses: actions/checkout@v4
2836

2937
- name: Login to Docker Hub
3038
uses: docker/login-action@v3
@@ -42,6 +50,10 @@ jobs:
4250
${{ secrets.DOCKERHUB_USERNAME }}/crew-wiki:latest
4351
${{ secrets.DOCKERHUB_USERNAME }}/crew-wiki:${{ github.sha }}
4452
53+
deploy:
54+
needs: push
55+
runs-on: ubuntu-24.04
56+
steps:
4557
- name: Deploy to Server
4658
uses: appleboy/ssh-action@v1.0.3
4759
with:

0 commit comments

Comments
 (0)