@@ -3,7 +3,7 @@ name: "Publish Docker"
33on :
44 push :
55 tags :
6- - " v* "
6+ - ' v* '
77
88jobs :
99 publish-docker :
@@ -23,22 +23,11 @@ jobs:
2323 echo "channel=$channel" >> $GITHUB_OUTPUT
2424
2525 - name : Set up Docker Buildx
26- uses : docker/setup-buildx-action@v3
27-
28- - name : Docker meta
29- id : meta
30- uses : docker/metadata-action@v5
31- with :
32- images : |
33- ghcr.io/gnzsnz/ib-gateway
34- gnzsnz/ib-gateway
35- flavor : |
36- latest=false
37- tags : |
38- type=match,pattern=v(\d+.\d+),group=1
39- type=match,pattern=v(\d+.\d+.\w+),group=1
40- type=match,pattern=v(\d+.\d+.\w+)+\-(stable|latest),group=2
26+ uses : docker/setup-buildx-action@v3
4127
28+ # ##############################################################
29+ # Login container registry
30+ # ##############################################################
4231 - name : Log in to the Container registry
4332 uses : docker/login-action@v3
4433 with :
5140 with :
5241 username : ${{ secrets.DOCKERHUB_USERNAME }}
5342 password : ${{ secrets.DOCKERHUB_TOKEN }}
54-
55- - name : Build and push
43+
44+ # ##############################################################
45+ # Build ibgateway
46+ # ##############################################################
47+
48+ - name : Docker meta ibgateway
49+ id : meta
50+ uses : docker/metadata-action@v5
51+ with :
52+ images : |
53+ ghcr.io/gnzsnz/ib-gateway
54+ gnzsnz/ib-gateway
55+ flavor : |
56+ latest=false
57+ tags : |
58+ type=match,pattern=v(\d+.\d+),group=1
59+ type=match,pattern=v(\d+.\d+.\w+),group=1
60+ type=match,pattern=v(\d+.\d+.\w+)+\-(stable|latest),group=2
61+
62+ - name : Build and push ibgateway
5663 uses : docker/build-push-action@v5
5764 with :
5865 context : ${{ steps.channel.outputs.channel }}
6168 push : true
6269 tags : ${{ steps.meta.outputs.tags }}
6370 labels : ${{ steps.meta.outputs.labels }}
71+
72+ # ##############################################################
73+ # Build tws
74+ # ##############################################################
75+
76+ - name : Docker meta TWS
77+ id : meta-tws
78+ uses : docker/metadata-action@v5
79+ with :
80+ images : |
81+ ghcr.io/gnzsnz/tws-rdesktop
82+ gnzsnz/tws-rdesktop
83+ flavor : |
84+ latest=false
85+ tags : |
86+ type=match,pattern=v(\d+.\d+),group=1
87+ type=match,pattern=v(\d+.\d+.\w+),group=1
88+ type=match,pattern=v(\d+.\d+.\w+)+\-(stable|latest),group=2
89+
90+ - name : Build and push TWS
91+ uses : docker/build-push-action@v5
92+ with :
93+ context : ${{ steps.channel.outputs.channel }}
94+ file : ${{ steps.channel.outputs.channel }}/Dockerfile.tws
95+ cache-from : type=gha
96+ cache-to : type=gha,mode=max
97+ push : true
98+ tags : ${{ steps.meta-tws.outputs.tags }}
99+ labels : ${{ steps.meta-tws.outputs.labels }}
0 commit comments