File tree 2 files changed +38
-1
lines changed
2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Test Build and Run Docker Image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ pull_request :
8
+ merge_group :
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ build :
13
+ strategy :
14
+ matrix :
15
+ platform :
16
+ - amd64
17
+ - arm64
18
+
19
+ runs-on : ubuntu-latest
20
+
21
+ steps :
22
+ - name : Check out code
23
+ uses : actions/checkout@v3
24
+ - name : Set up QEMU
25
+ uses : docker/setup-qemu-action@v2
26
+ - name : Set up Docker Buildx
27
+ uses : docker/setup-buildx-action@v2
28
+ - uses : docker/build-push-action@v2
29
+ with :
30
+ context : .
31
+ push : false
32
+ load : true
33
+ tags : telegramus-test-${{ matrix.platform }}
34
+ platforms : linux/${{ matrix.platform }}
35
+ - run : |
36
+ docker run --rm "telegramus-test-${{ matrix.platform }}" /app/telegramus --version
Original file line number Diff line number Diff line change 27
27
import Authenticator
28
28
import BotHandler
29
29
30
- TELEGRAMUS_VERSION = 'beta_1.6.0 '
30
+ TELEGRAMUS_VERSION = 'beta_1.6.1 '
31
31
32
32
# Logging level (INFO for debug, WARN for release)
33
33
LOGGING_LEVEL = logging .INFO
@@ -93,6 +93,7 @@ def parse_args():
93
93
default = os .getenv ('TELEGRAMUS_SETTINGS_FILE' , SETTINGS_FILE ))
94
94
parser .add_argument ('--messages' , type = str , help = 'messages.json file location' ,
95
95
default = os .getenv ('TELEGRAMUS_MESSAGES_FILE' , MESSAGES_FILE ))
96
+ parser .add_argument ('--version' , action = 'version' , version = TELEGRAMUS_VERSION )
96
97
return parser .parse_args ()
97
98
98
99
You can’t perform that action at this time.
0 commit comments