File tree Expand file tree Collapse file tree 4 files changed +30
-12
lines changed Expand file tree Collapse file tree 4 files changed +30
-12
lines changed Original file line number Diff line number Diff line change 29
29
exit 1
30
30
fi
31
31
echo "tag=${image_version}" >> $GITHUB_OUTPUT
32
- - name : Build container image
33
- run : docker build . --file Dockerfile --tag oitc/modbus-server:${{steps.application-version.outputs.tag}}
32
+ - name : Set up QEMU
33
+ uses : docker/setup-qemu-action@v2
34
+ - name : Set up Docker Buildx
35
+ uses : docker/setup-buildx-action@v2
34
36
- name : Login to container registry
35
- run : echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
36
- - name : Push container image to container registry
37
- run : docker push oitc/modbus-server:${{steps.application-version.outputs.tag}}
37
+ uses : docker/login-action@v2
38
+ with :
39
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
40
+ password : ${{ secrets.DOCKERHUB_PASSWORD }}
41
+ - name : Build and push
42
+ uses : docker/build-push-action@v4
43
+ with :
44
+ push : true
45
+ context : .
46
+ platforms : linux/amd64, linux/arm64
47
+ tags : oitc/modbus-server:${{steps.application-version.outputs.tag}},oitc/modbus-server:latest
Original file line number Diff line number Diff line change 11
11
name : Build
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - name : Checkout GIT repository
15
- uses : actions/checkout@v3
16
- - name : Build container image
17
- run : |
18
- docker build . --file Dockerfile --tag container-build:test
14
+ - name : Checkout GIT repository
15
+ uses : actions/checkout@v3
16
+ - name : Set up QEMU
17
+ uses : docker/setup-qemu-action@v2
18
+ - name : Set up Docker Buildx
19
+ uses : docker/setup-buildx-action@v2
20
+ - name : Test build
21
+ uses : docker/build-push-action@v4
22
+ with :
23
+ push : false
24
+ context : .
25
+ platforms : linux/amd64, linux/arm64
26
+ tags : container-build:test
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ LABEL site.local.os.version="3.17"
8
8
LABEL site.local.runtime.name="Python"
9
9
LABEL site.local.runtime.version="3.10.9"
10
10
LABEL site.local.program.name="Python Modbus TCP Server"
11
- LABEL site.local.program.version="1.1.2 "
11
+ LABEL site.local.program.version="1.1.3 "
12
12
13
13
RUN addgroup -g 1000 -S pythonuser \
14
14
&& adduser -u 1000 -S pythonuser -G pythonuser \
Original file line number Diff line number Diff line change 19
19
20
20
# default configuration file path
21
21
config_file = '/opt/modbus_server/etc/modbus_server.json'
22
- VERSION = '1.1.2 '
22
+ VERSION = '1.1.3 '
23
23
"""
24
24
###############################################################################
25
25
# F U N C T I O N S
You can’t perform that action at this time.
0 commit comments