From d83b818c406634e6ea4e14eb593140794ee525f4 Mon Sep 17 00:00:00 2001 From: petruki <31597636+petruki@users.noreply.github.com> Date: Tue, 1 Jul 2025 12:55:42 -0700 Subject: [PATCH] chore: removed main-docker.yml workflow (replaced by docker-build.yml) --- .github/workflows/main-docker.yml | 44 ------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 .github/workflows/main-docker.yml diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.yml deleted file mode 100644 index b804b6c..0000000 --- a/.github/workflows/main-docker.yml +++ /dev/null @@ -1,44 +0,0 @@ -# This workflow builds and pushes the Docker image for the OJP server. -# It should only trigger when there are changes in the `ojp-server` or `ojp-grpc-commons` modules. -name: Main OJP Server Docker Image CI - -on: - push: - branches: [ main ] - paths: - - '.github/workflows/main-docker.yml' - - 'ojp-server/**' - - 'ojp-grpc-commons/**' - -jobs: - build-docker-image: - name: Build Docker Image - runs-on: ubuntu-latest - if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" - - steps: - - name: Git checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up JDK 22 - uses: actions/setup-java@v4 - with: - java-version: 22 - distribution: 'temurin' - cache: maven - - - name: Build and push Docker image - env: - DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} - DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} - DOCKERHUB_REPO: ${{ vars.DOCKERHUB_REPO }} - run: | - mvn compile jib:build -pl ojp-server \ - -Dimage="${DOCKERHUB_REPO}:latest" \ - -Djib.to.auth.username="${DOCKERHUB_USER}" \ - -Djib.to.auth.password="${DOCKERHUB_TOKEN}" \ - -Djib.to.image="${DOCKERHUB_REPO}/ojp:latest" \ - -Djib.container.mainClass="org.openjdbcproxy.grpc.server.GrpcServer" \ - -Djib.container.ports=1059 \ No newline at end of file