forked from LykkeCity/MatchingEngine
-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (60 loc) · 2.13 KB
/
migration.yml
File metadata and controls
70 lines (60 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Continuous integration for Spot Matching Engine
on:
push:
branches:
- migration*
- master
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Set up AdoptOpenJDK 1.8
uses: joschi/setup-jdk@v2.3.0
with:
java-version: 8
architecture: x64
- name: Get current time
uses: MyJetTools/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DD HH:mm:ss
utcOffset: "+00:00"
- name: Build
uses: eskatos/gradle-command-action@v1
env:
BuildNumber: ${{ github.run_number }}
with:
gradle-version: 6.8.1
arguments: clean build printProperties
- name: Check dir
run: ls build/distributions
- name: Archive production artifacts
uses: actions/upload-artifact@v1
with:
name: MyJetWallet.MatchingEngine-2.0.zip
path: build/distributions
- name: Publish image
uses: docker/build-push-action@v1
with:
dockerfile: docker/dockerfile
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
path: ./build/distributions
registry: docker.pkg.github.com
repository: ${{ secrets.ORG_NAME }}/matchingengine/myjetwallet.matchingengine-test
tags: latest
add_git_labels: true
build_args: app_version=myjetwallet.service.matchingengine-test:latest,app_compilation_date=${{ steps.current-time.outputs.formattedTime }}
- name: Publish image ST
uses: docker/build-push-action@v1
with:
dockerfile: docker/dockerfile
username: ${{ secrets.ST_DOCKER_USER }}
password: ${{ secrets.ST_DOCKER_PASSWORD }}
path: ./build/distributions
registry: ${{ secrets.AZURE_CONTAINER_REGISTRY }}
repository: spot/myjetwallet.matchingengine-test
tags: latest
add_git_labels: true
build_args: app_version=myjetwallet.matchingengine-test:latest,app_compilation_date=${{ steps.current-time.outputs.formattedTime }}