Skip to content

Commit 4a03d38

Browse files
committed
Add github action to build image
1 parent 842e4a1 commit 4a03d38

File tree

2 files changed

+33
-114
lines changed

2 files changed

+33
-114
lines changed

.github/workflows/docker-image.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v1
18+
19+
- name: Log in to GitHub Container Registry
20+
uses: docker/login-action@v1
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Build and push Docker image
27+
uses: docker/build-push-action@v2
28+
with:
29+
context: .
30+
file: ./Dockerfile
31+
push: true
32+
tags: ghcr.io/${{ github.repository_owner }}/cardano-db-sync:13.6.0.4

dbsync-config.json

Lines changed: 1 addition & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,6 @@
11
{
2-
"EnableFutureGenesis": true,
3-
"EnableLogMetrics": false,
4-
"EnableLogging": true,
5-
"NetworkName": "mainnet",
6-
"NodeConfigFile": "/nix/store/kcl7gc0q0w70c51lnfh1cdk70niylshd-config-mainnet.json",
7-
"PrometheusPort": 8080,
8-
"RequiresNetworkMagic": "RequiresNoMagic",
9-
"defaultBackends": [
10-
"KatipBK"
11-
],
12-
"defaultScribes": [
13-
[
14-
"StdoutSK",
15-
"stdout"
16-
]
17-
],
182
"insert_options": {
193
"preset": "full",
204
"tx_cbor": "enable"
21-
},
22-
"minSeverity": "Info",
23-
"options": {
24-
"cfokey": {
25-
"value": "Release-1.0.0"
26-
},
27-
"mapBackends": {},
28-
"mapSeverity": {
29-
"db-sync-node": "Info",
30-
"db-sync-node.Mux": "Error",
31-
"db-sync-node.Subscription": "Error"
32-
},
33-
"mapSubtrace": {
34-
"#ekgview": {
35-
"contents": [
36-
[
37-
{
38-
"contents": "cardano.epoch-validation.benchmark",
39-
"tag": "Contains"
40-
},
41-
[
42-
{
43-
"contents": ".monoclock.basic.",
44-
"tag": "Contains"
45-
}
46-
]
47-
],
48-
[
49-
{
50-
"contents": "cardano.epoch-validation.benchmark",
51-
"tag": "Contains"
52-
},
53-
[
54-
{
55-
"contents": "diff.RTS.cpuNs.timed.",
56-
"tag": "Contains"
57-
}
58-
]
59-
],
60-
[
61-
{
62-
"contents": "#ekgview.#aggregation.cardano.epoch-validation.benchmark",
63-
"tag": "StartsWith"
64-
},
65-
[
66-
{
67-
"contents": "diff.RTS.gcNum.timed.",
68-
"tag": "Contains"
69-
}
70-
]
71-
]
72-
],
73-
"subtrace": "FilterTrace"
74-
},
75-
"#messagecounters.aggregation": {
76-
"subtrace": "NoTrace"
77-
},
78-
"#messagecounters.ekgview": {
79-
"subtrace": "NoTrace"
80-
},
81-
"#messagecounters.katip": {
82-
"subtrace": "NoTrace"
83-
},
84-
"#messagecounters.monitoring": {
85-
"subtrace": "NoTrace"
86-
},
87-
"#messagecounters.switchboard": {
88-
"subtrace": "NoTrace"
89-
},
90-
"benchmark": {
91-
"contents": [
92-
"GhcRtsStats",
93-
"MonotonicClock"
94-
],
95-
"subtrace": "ObservableTrace"
96-
},
97-
"cardano.epoch-validation.utxo-stats": {
98-
"subtrace": "NoTrace"
99-
}
100-
}
101-
},
102-
"rotation": {
103-
"rpKeepFilesNum": 10,
104-
"rpLogLimitBytes": 5000000,
105-
"rpMaxAgeHours": 24
106-
},
107-
"setupBackends": [
108-
"AggregationBK",
109-
"KatipBK"
110-
],
111-
"setupScribes": [
112-
{
113-
"scFormat": "ScText",
114-
"scKind": "StdoutSK",
115-
"scName": "stdout",
116-
"scRotation": null
117-
}
118-
]
5+
}
1196
}

0 commit comments

Comments
 (0)