Bump libs and build

This commit is contained in:
Kostya Struga 2021-12-22 11:43:27 +03:00
parent fb1c12a000
commit 4bf5fe3ed8
3 changed files with 81 additions and 14 deletions

27
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Build Artifact
on:
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Checkout GitHub Action Repo
uses: actions/checkout@v2
with:
repository: alfaind/action-jdk-build
ref: v1.0.17
token: '${{ secrets.ACTIONS_FETCH_TOKEN }}'
path: .github/actions/action-jdk-build
- name: Run Build Java
uses: ./.github/actions/action-jdk-build
with:
github-pat: '${{ secrets.GH_PACKAGES_RO_PAT }}'
github-user: 'vulnbe'

46
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: Deploy Docker Image
on:
push:
branches:
- 'master'
- 'main'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Checkout GitHub Action JDK Build Repo
uses: actions/checkout@v2
with:
repository: alfaind/action-jdk-build
ref: v1.0.17
token: '${{ secrets.ACTIONS_FETCH_TOKEN }}'
path: .github/actions/action-jdk-build
- name: Checkout GitHub Action Deploy Docker Repo
uses: actions/checkout@v2
with:
repository: alfaind/action-deploy-docker
ref: v1.0.3
token: '${{ secrets.ACTIONS_FETCH_TOKEN }}'
path: .github/actions/action-deploy-docker
- name: Run Build Java
uses: ./.github/actions/action-jdk-build
with:
github-pat: '${{ secrets.GH_PACKAGES_RO_PAT }}'
github-user: 'vulnbe'
- name: Deploy image
uses: ./.github/actions/action-deploy-docker
with:
registry-username: ${{ github.actor }}
registry-access-token: ${{ secrets.GITHUB_TOKEN }}

22
pom.xml
View File

@ -30,7 +30,7 @@
<local.pg.url>jdbc:postgresql://localhost:5432/newway</local.pg.url>
<local.pg.port>5432</local.pg.port>
<fistful-proto.version>1.128-d331fce</fistful-proto.version>
<sink-common-lib.version>0.0.4</sink-common-lib.version>
<sink-common-lib.version>0.0.8</sink-common-lib.version>
</properties>
<dependencies>
@ -115,12 +115,12 @@
<dependency>
<groupId>com.rbkmoney</groupId>
<artifactId>payout-manager-proto</artifactId>
<version>1.6-34677e3</version>
<version>1.21-bdd9888</version>
</dependency>
<dependency>
<groupId>com.rbkmoney</groupId>
<artifactId>eventstock-client-damsel</artifactId>
<version>1.2.10</version>
<version>1.2.12</version>
</dependency>
<dependency>
<groupId>com.rbkmoney</groupId>
@ -134,12 +134,12 @@
<dependency>
<groupId>com.rbkmoney</groupId>
<artifactId>machinegun-proto</artifactId>
<version>1.12-ebae56f</version>
<version>1.19-f77367a</version>
</dependency>
<dependency>
<groupId>com.rbkmoney</groupId>
<artifactId>eventstock-client-fistful</artifactId>
<version>1.2.10</version>
<version>1.2.12</version>
</dependency>
<dependency>
<groupId>com.rbkmoney</groupId>
@ -153,7 +153,7 @@
<dependency>
<groupId>com.rbkmoney</groupId>
<artifactId>xrates-proto</artifactId>
<version>1.8-67d5c21</version>
<version>1.16-66906cd</version>
</dependency>
<dependency>
<groupId>com.rbkmoney</groupId>
@ -195,12 +195,6 @@
<version>3.7.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.rbkmoney.hg-mock</groupId>
<artifactId>generator</artifactId>
<version>0.9.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.opentable.components</groupId>
<artifactId>otj-pg-embedded</artifactId>
@ -216,7 +210,7 @@
<dependency>
<groupId>com.rbkmoney</groupId>
<artifactId>easyway</artifactId>
<version>0.5.0</version>
<version>0.8.0</version>
<scope>test</scope>
</dependency>
</dependencies>
@ -251,7 +245,7 @@
<plugin>
<groupId>com.rbkmoney.maven.plugins</groupId>
<artifactId>pg-embedded-plugin</artifactId>
<version>1.7</version>
<version>1.8-test</version>
<configuration>
<port>${local.pg.port}</port>
<dbName>${db.name}</dbName>