Skip to content

Fix direct memory issue #141

Fix direct memory issue

Fix direct memory issue #141

Workflow file for this run

name: Build and Release
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '22'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: gradle/actions/setup-gradle@v3
- id: tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_prefix: ''
- run: echo "IMAGE_NAME=ghcr.io/${{github.repository}}:${{ steps.tag.outputs.new_tag }}" >> $GITHUB_ENV
- run: echo "DOCKER_USER=${{ github.actor }}" >> $GITHUB_ENV
- run: echo "DOCKER_PASS=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
- run: ./gradlew build bootBuildImage --imageName $IMAGE_NAME --publishImage
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
outputs:
image_name: ${{ env.IMAGE_NAME }}
release:
needs: build
runs-on: on-prem
environment: 'Prod'
env:
DEPLOYMENT: ${{ github.event.repository.name }}
steps:
- name: Perform rolling update
run: |
kubectl set image deployment/${DEPLOYMENT} ${DEPLOYMENT}=${{ needs.build.outputs.image_name }} -n default
kubectl rollout status deployment/${DEPLOYMENT} -n default
- uses: smartsquaregmbh/[email protected]
with:
keep: 2
type: container
names: ${{ env.DEPLOYMENT }}
token: ${{ secrets.GITHUB_TOKEN }}
organization: ${{ github.event.organization.login }}