Skip to content

Commit

Permalink
Pass docker tag directly to gradlew
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinperera00 committed Dec 17, 2024
1 parent 919e5f3 commit 42c9c49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-connector-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew build -x test ${{ inputs.additional-build-flags }}
./gradlew test ${{ inputs.additional-test-flags }}
./gradlew build -x -PbuildUsingDocker="2201.11.0-pre-rc1" test ${{ inputs.additional-build-flags }}
./gradlew test -PbuildUsingDocker="2201.11.0-pre-rc1" ${{ inputs.additional-test-flags }}
- name: Generate Codecov Report
uses: codecov/codecov-action@v3
Expand All @@ -83,7 +83,7 @@ jobs:
packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }}
publishUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
publishPAT: ${{ secrets.BALLERINA_BOT_TOKEN }}
run: ./gradlew publish --no-daemon --scan ${{ inputs.additional-build-flags }}
run: ./gradlew publish --no-daemon --scan -PbuildUsingDocker="2201.11.0-pre-rc1" ${{ inputs.additional-build-flags }}

# Send notification when build fails
- name: Alert notifier on failure
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-build-connector-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set Up Ballerina
uses: ballerina-platform/setup-ballerina@v1.1.0
with:
version: 2201.11.0-pre-rc1
version: ${{ env.BAL_VERSION }}

- name: Set up JDK 21
uses: actions/setup-java@v3
Expand All @@ -53,8 +53,8 @@ jobs:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew build -x test ${{ inputs.additional-build-flags }}
./gradlew test ${{ inputs.additional-test-flags }}
./gradlew build -x test -PbuildUsingDocker="2201.11.0-pre-rc1" ${{ inputs.additional-build-flags }}
./gradlew test -PbuildUsingDocker="2201.11.0-pre-rc1" ${{ inputs.additional-test-flags }}
- name: Generate Codecov Report
uses: codecov/codecov-action@v3

0 comments on commit 42c9c49

Please sign in to comment.