diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b6c03887..68c808db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,17 +44,21 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - - name: Run Tests - run: | - mvn fmt:check - mvn clean verify - - uses: google-github-actions/setup-gcloud@master + - name: gcloud setup + uses: google-github-actions/setup-gcloud@master with: service_account_key: ${{ secrets.GCR_KEY }} # Configure docker to use the gcloud command-line tool as a credential helper - - run: | + - name: Configure GCR + run: | gcloud auth configure-docker + - name: Run Tests + run: | + export LD_LIBRARY_PATH=/usr/local/lib + mvn fmt:check + mvn clean verify + - name: pr docker tag if: github.ref != 'refs/heads/main' id: tag diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index a132012b..040179cb 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -34,17 +34,20 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - - name: Run Tests - run: | - mvn fmt:check - mvn clean verify - - uses: google-github-actions/setup-gcloud@master + - name: gcloud setup + uses: google-github-actions/setup-gcloud@master with: service_account_key: ${{ secrets.GCR_KEY }} # Configure docker to use the gcloud command-line tool as a credential helper - - run: | + - name: Configure GCR + run: | gcloud auth configure-docker + - name: Run Tests + run: | + export LD_LIBRARY_PATH=/usr/local/lib + mvn clean verify + - name: pr docker tag if: github.ref != 'refs/heads/main' id: tag diff --git a/docker-compose.yml b/docker-compose.yml index 7a3499b1..4ffc73d6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: - "46672:15672" survey: container_name: survey-it - image: sdcplatform/surveysvc + image: eu.gcr.io/ons-rasrmbs-management/survey ports: - "18080:8080" external_links: @@ -33,7 +33,7 @@ services: - security_user_password=secret action: container_name: action-it - image: sdcplatform/actionsvc + image: eu.gcr.io/ons-rasrmbs-management/action ports: - "38151:8151" external_links: @@ -44,9 +44,9 @@ services: - spring_datasource_url=jdbc:postgresql://postgres-it:5432/postgres?sslmode=disable - spring_datasource_username=postgres - spring_datasource_password=postgres - - liquibase_url=jdbc:postgresql://postgres-it:5432/postgres?sslmode=disable - - liquibase_user=postgres - - liquibase_password=postgres + - spring_liquibase_url=jdbc:postgresql://postgres-it:5432/postgres?sslmode=disable + - spring_liquibase_user=postgres + - spring_liquibase_password=postgres - security_user_name=admin - security_user_password=secret - data_grid_address=redis-it:6379 diff --git a/pom.xml b/pom.xml index 08da3eae..3206f4c5 100644 --- a/pom.xml +++ b/pom.xml @@ -407,25 +407,6 @@ - - com.spotify - dockerfile-maven-plugin - 1.4.4 - - - - build - - package - - sdcplatform/${project.artifactId} - - ${project.build.finalName}.jar - - - - - com.coveo fmt-maven-plugin @@ -439,58 +420,39 @@ - io.fabric8 - docker-maven-plugin - 0.23.0 + com.dkanejs.maven.plugins + docker-compose-maven-plugin + 4.0.0 pre-stop + pre-integration-test - stop + down - pre-integration-test - - - - compose - ${project.basedir} - - - + ${project.basedir}/docker-compose.yml - start + up + pre-integration-test - start + up - false - - - - compose - ${project.basedir} - - - + ${project.basedir}/docker-compose.yml + true - stop + down + post-integration-test - stop + down - - - - compose - ${project.basedir} - - - + ${project.basedir}/docker-compose.yml @@ -509,33 +471,6 @@ - - se.thinkcode.wait - http - 1.1.0 - - - wait-for-action - - wait - - - http://localhost:38151/info - 60000 - - - - wait-for-survey - - wait - - - http://localhost:18080/info - 60000 - - - -