Skip to content

Commit

Permalink
Build image with Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
knstvk committed Dec 19, 2024
1 parent be5299b commit 527ce4b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,18 @@ jobs:
# with:
# report_paths: '**/build/test-results/test/TEST-*.xml'

- name: Build Docker Image
# if: ${{ github.ref == 'refs/heads/main' }}
- name: Build JAR
env:
PREMIUM_REPO_USER: ${{ secrets.PREMIUM_REPO_USER }}
PREMIUM_REPO_PASS: ${{ secrets.PREMIUM_REPO_PASS }}
run: ./gradlew -Pvaadin.productionMode=true bootJar

- name: Build Docker Image
# if: ${{ github.ref == 'refs/heads/main' }}
run: docker build -t jmix/jmix-bookstore:test .

- name: Push Docker Image
env:
DOCKER_HUB_LOGIN: ${{ secrets.DOCKER_HUB_LOGIN }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
run: ./gradlew -Pvaadin.productionMode=true bootBuildImage
run: docker push jmix/jmix-bookstore:test

0 comments on commit 527ce4b

Please # to comment.