Skip to content

Commit e3dd772

Browse files
committed
Update docker-build.yml
1 parent 8136261 commit e3dd772

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.github/workflows/docker-build.yml

+25-11
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,42 @@ jobs:
1313
jar_name: ${{ steps.jar_name.outputs.jar_name }}
1414
steps:
1515
- name: Checkout Repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Java
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: 'temurin'
22+
java-version: 17
23+
#check-latest: true
1724

1825
- name: Setup Gradle
19-
uses: gradle/gradle-build-action@v3
26+
uses: gradle/actions/setup-gradle@v3
27+
28+
- name: Build with Gradle
29+
run: ./gradlew build
2030

2131
#- name: Build and run tests
2232
# run: mvn -B -s settings.xml test
2333
# env:
2434
# MAVEN_REPOSITORY_USERNAME: ${{ github.actor }}
2535
# MAVEN_REPOSITORY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
2636

27-
- name: Login to GitHub Container Registry
28-
uses: docker/login-action@v3
29-
with:
30-
registry: ghcr.io
31-
username: ${{ github.actor }}
32-
password: ${{ secrets.GITHUB_TOKEN }}
37+
#- name: Login to GitHub Container Registry
38+
# uses: docker/login-action@v3
39+
# with:
40+
# registry: ghcr.io
41+
# username: ${{ github.actor }}
42+
# password: ${{ secrets.GITHUB_TOKEN }}
43+
44+
#- name: Test gradle
45+
# run: |
46+
# ./gradlew
3347

34-
- name: Build container image with maven, and push to registry
48+
- name: Build container image with gradle, and push to registry
3549
run: |
36-
mvn -B spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.imageName=ghcr.io/joaomlneto/byzzbench:$IMAGE_TAG
37-
#docker push ghcr.io/render-ninja/$IMAGE_NAME:$IMAGE_TAG
50+
gradle bootBuildImage -DskipTests=true
51+
#docker push ghcr.io/joaomlneto/$IMAGE_NAME:$IMAGE_TAG
3852
env:
3953
MAVEN_REPOSITORY_USERNAME: ${{ github.actor }}
4054
MAVEN_REPOSITORY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)