Skip to content

Commit

Permalink
Try build pack
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Mar 18, 2024
1 parent 379f6ae commit 304498b
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions .github/workflows/build-sanpshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,42 @@ on:
- README.md

jobs:
prebuild-job:
name: Prebuild Job
uses: th2-net/.github/.github/workflows/compound-prebuild-java-dev-workflow.yml@main
build-job:
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main
with:
build-target: 'Docker'
docker-username: ${{ github.actor }}
secrets:
docker-password: ${{ secrets.GITHUB_TOKEN }}
needs:
- prebuild-job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
- uses: buildpacks/github-actions/[email protected]
- name: Create image
run: >
pack build ghcr.io/${{ github.repository }}:${{ needs.prebuild-job.outputs.version }}
--builder paketobuildpacks/builder-jammy-base
-e BP_GRADLE_BUILT_ARTIFACT=./build/distributions/service*.zip
-e BP_GRADLE_ADDITIONAL_BUILD_ARGUMENTS=distZip
-e BPE_BPL_JVM_THREAD_COUNT=20
-e BP_JVM_VERSION=11
-e BPE_DELIM_JAVA_TOOL_OPTIONS=' '
-e BPE_APPEND_JAVA_TOOL_OPTIONS='-XX:ActiveProcessorCount=-1'
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker push ghcr.io/${{ github.repository }}:${{ needs.prebuild-job.outputs.version }}
# build-job:
# uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main
# with:
# build-target: 'Docker'
# docker-username: ${{ github.actor }}
# secrets:
# docker-password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 304498b

Please sign in to comment.