Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Astin01 authored Apr 30, 2024
1 parent 5d56fc0 commit ed4b441
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'

- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: clean bootJar

- name: Build
run: ./gradlew build

- name: docker image build
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/github-actions-demo .
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/zero-plate-api .

- name: docker login
uses: docker/login-action@v2
Expand All @@ -42,4 +40,4 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: docker Hub push
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/github-actions-demo
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/zero-plate-api

0 comments on commit ed4b441

Please sign in to comment.