bump actions (#29)

This commit is contained in:
Anatolii Karlov 2023-10-12 09:34:42 +03:00 committed by GitHub
parent e9b6d5b7be
commit e32e78ca1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 80 deletions

View File

@ -1,4 +1,4 @@
name: Build Artifact name: Maven Build Artifact
on: on:
pull_request: pull_request:
@ -7,13 +7,4 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-20.04 uses: valitydev/java-workflow/.github/workflows/maven-service-build.yml@v1
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Checkout GitHub Action Repo
uses: actions/checkout@v2
- name: Run Build Java
uses: valitydev/action-jdk-build@v0.0.7

View File

@ -1,4 +1,4 @@
name: Deploy Docker Image name: Maven Deploy Artifact
on: on:
push: push:
@ -6,34 +6,9 @@ on:
- 'master' - 'master'
- 'main' - 'main'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs: jobs:
build-and-deploy: deploy:
runs-on: ubuntu-20.04 uses: valitydev/java-workflow/.github/workflows/maven-service-deploy.yml@v1
steps: secrets:
- name: Checkout Repo github-token: ${{ secrets.GITHUB_TOKEN }}
uses: actions/checkout@v2 mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
- name: Checkout GitHub Action JDK Build Repo
uses: actions/checkout@v2
- name: Checkout GitHub Action Deploy Docker Repo
uses: actions/checkout@v2
with:
repository: valitydev/action-deploy-docker
ref: v1.0.16
path: .github/actions/action-deploy-docker
- name: Run Build Java
uses: valitydev/action-jdk-build@v0.0.7
- name: Deploy image
uses: ./.github/actions/action-deploy-docker
with:
registry-username: ${{ github.actor }}
registry-access-token: ${{ secrets.GITHUB_TOKEN }}
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}

24
pom.xml
View File

@ -21,8 +21,6 @@
<server.port>8022</server.port> <server.port>8022</server.port>
<management.port>8023</management.port> <management.port>8023</management.port>
<exposed.ports>${server.port} ${management.port}</exposed.ports> <exposed.ports>${server.port} ${management.port}</exposed.ports>
<dockerfile.base.service.tag>c0612d6052ac049496b72a23a04acb142035f249</dockerfile.base.service.tag>
<dockerfile.registry>dr2.rbkmoney.com</dockerfile.registry>
<shared.resources.version>0.3.7</shared.resources.version> <shared.resources.version>0.3.7</shared.resources.version>
<wb.list.proto.version>1.44-5dbd6d4</wb.list.proto.version> <wb.list.proto.version>1.44-5dbd6d4</wb.list.proto.version>
<testcontainers.annotations.version>1.4.3</testcontainers.annotations.version> <testcontainers.annotations.version>1.4.3</testcontainers.annotations.version>
@ -154,12 +152,12 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId> <artifactId>maven-remote-resources-plugin</artifactId>
<version>1.6.0</version> <version>3.0.0</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.apache.maven.shared</groupId> <groupId>org.apache.maven.shared</groupId>
<artifactId>maven-filtering</artifactId> <artifactId>maven-filtering</artifactId>
<version>1.3</version> <version>3.3.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
<configuration> <configuration>
@ -177,24 +175,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- Sonar-JaCoCo integration plugin -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<configuration>
<destFile>${sonar.jacoco.reportPath}</destFile>
<append>true</append>
</configuration>
<executions>
<execution>
<id>agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -1,20 +1,36 @@
info:
version: '@project.version@'
stage: dev
server: server:
port: '@server.port@' port: '@server.port@'
rest: rest:
port: '@server.rest.port@' port: '@server.rest.port@'
endpoint: ch-manager endpoint: ch-manager
spring:
application:
name: '@project.name@'
output:
ansi:
enabled: always
main:
allow-bean-definition-overriding: true
kafka:
bootstrap-servers: "localhost:29092"
streams:
application-id: wb-list
client-id: wb-list-client
management: management:
security:
flag: false
server: server:
port: '@management.port@' port: '@management.port@'
metrics: metrics:
export: export:
statsd:
flavor: etsy
enabled: false
prometheus: prometheus:
enabled: false enabled: false
tags:
application: wb-list-manager
endpoint: endpoint:
health: health:
show-details: always show-details: always
@ -26,17 +42,7 @@ management:
web: web:
exposure: exposure:
include: health,info,prometheus include: health,info,prometheus
spring:
application:
name: '@project.name@'
output:
ansi:
enabled: always
kafka:
bootstrap-servers: "localhost:29092"
streams:
application-id: wb-list
client-id: wb-list-client
riak-config: riak-config:
address: localhost address: localhost
port: 8087 port: 8087