2.0.14 #185
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow pushes the releases to quay.io | |
name: Publish Release | |
on: | |
release: | |
types: | |
- released | |
- prereleased | |
env: | |
TAG: ${{ github.event.release.tag_name }} | |
jobs: | |
check_tag: | |
runs-on: ubuntu-latest | |
outputs: | |
do_release: ${{ steps.check_tag.outputs.do_release }} | |
steps: | |
- name: check tag ${{ github.ref }} | |
id: check_tag | |
run: | | |
if [[ "${{ github.ref }}" =~ refs\/tags\/[0-9]+\.[0-9]+\.[0-9]+ ]]; then | |
echo "::set-output name=do_release::true" | |
else | |
echo "::set-output name=do_release::false" | |
fi | |
jib-push: | |
runs-on: ubuntu-latest | |
needs: [check_tag] | |
if: needs.check_tag.outputs.do_release == 'true' | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | |
- name: Set up Java | |
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
cache: 'gradle' | |
- name: Build and Push | |
env: | |
USERNAME: ${{ secrets.QUAY_IO_USERNAME }} | |
PASSWORD: ${{ secrets.QUAY_IO_PASSWORD }} | |
run: > | |
./gradlew jib | |
-Djib.to.auth.username=${USERNAME} | |
-Djib.to.auth.password=${PASSWORD} | |
-Djib.useOnlyProjectCache=true | |
-Djib.console=plain | |
-Djib.disableUpdateChecks=true | |
-Djib.httpTimeout=0 | |
-Djib.container.creationTime=USE_CURRENT_TIMESTAMP | |
-Djib.to.image=quay.io/sdase/mongodb-operator:${TAG} |