Skip to content

Commit

Permalink
Update JIB container build and publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuSoysal committed Jan 3, 2024
1 parent 7546d8f commit 917468f
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,25 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: JIB container build and publish
uses: MathieuSoysal/jib-container-publish.yml@v2.1.4
- id: downcase
uses: ASzc/change-string-case-action@v2
with:
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
string: ${{ github.repository }}

- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: maven

- name: Build JIB container and publish to GitHub Packages
run: |
mvn package com.google.cloud.tools:jib-maven-plugin:3.3.2:build \
-Djib.to.image=ghcr.io/${{ steps.downcase.outputs.lowercase }}:latest \
-Djib.to.auth.username=${{ github.actor }} \
-Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }} $MULTI_MODULE_ARGS $MAIN_CLASS_ARGS
env:
TEST_MAIL : ${{ secrets.TEST_MAIL }}
TEST_PASSWORD : ${{ secrets.TEST_PASSWORD }}

0 comments on commit 917468f

Please sign in to comment.