Skip to content

Commit

Permalink
fixing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylook committed Jul 19, 2024
1 parent f920106 commit b8241c4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.17
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4.2.1
uses: actions/setup-java@v4
with:
distribution: 'jdk'
java-version: '21'

- name: Cache Gradle dependencies
uses: actions/cache@v4.0.2
uses: actions/cache@v4
with:
path: ${{ env.GRADLE_USER_HOME }}
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
Expand All @@ -35,14 +35,15 @@ jobs:

- name: Docker Login
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v3.2.0
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and Push Docker image
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v6.4.1
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down

0 comments on commit b8241c4

Please sign in to comment.