Bump org.openapitools:openapi-generator-maven-plugin from 6.6.0 to 7.8.0 #1236
Workflow file for this run
This file contains 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
name: "Infra: Image Testing: Deploy" | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: ['labeled'] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
if: ${{ github.event.label.name == 'status/image_testing' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
token: ${{ github.token }} | |
- name: get branch name | |
id: extract_branch | |
run: | | |
tag='${{ github.event.pull_request.number }}' | |
echo "tag=${tag}" >> $GITHUB_OUTPUT | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
cache: 'maven' | |
- name: Build | |
id: build | |
run: | | |
./mvnw -B -ntp versions:set -DnewVersion=$GITHUB_SHA | |
./mvnw -B -V -ntp clean package -Pprod -DskipTests | |
export VERSION=$(./mvnw -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) | |
echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx- | |
- name: Configure AWS credentials for Kafka-UI account | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
with: | |
registry-type: 'public' | |
- name: Build and push | |
id: docker_build_and_push | |
uses: docker/build-push-action@v5 | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
context: api | |
push: true | |
tags: public.ecr.aws/kafbat/kafka-ui-custom-build:${{ steps.extract_branch.outputs.tag }} | |
build-args: | | |
JAR_FILE=api-${{ steps.build.outputs.version }}.jar | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache | |
- name: make comment with private deployment link | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
Image published at public.ecr.aws/kafbat/kafka-ui-custom-build:${{ steps.extract_branch.outputs.tag }} | |
outputs: | |
tag: ${{ steps.extract_branch.outputs.tag }} |