@@ -93,135 +93,10 @@ jobs:
93
93
with :
94
94
asset_paths : ' ["./freqUI.zip"]'
95
95
96
-
97
- docker :
98
- if : (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release') && github.repository == 'freqtrade/frequi'
96
+ call-docker-workflow :
99
97
needs : build
100
- runs-on : ubuntu-latest
101
-
102
- permissions :
103
- packages : write
104
-
105
- environment :
106
- name : Production
107
- strategy :
108
- fail-fast : false
109
- matrix :
110
- platform :
111
- - linux/amd64
112
- - linux/arm/v6
113
- - linux/arm/v7
114
- - linux/arm64
115
-
116
- steps :
117
-
118
- - uses : actions/checkout@v4
119
-
120
- - name : Prepare Platform_pair
121
- run : |
122
- platform=${{ matrix.platform }}
123
- echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
124
-
125
- - name : Set up QEMU
126
- uses : docker/setup-qemu-action@v3
127
-
128
- - name : Set up Docker Buildx
129
- uses : docker/setup-buildx-action@v3
130
-
131
- - name : Login to Docker Hub
132
- uses : docker/login-action@v3
133
- with :
134
- username : ${{ secrets.DOCKERHUB_USERNAME }}
135
- password : ${{ secrets.DOCKERHUB_TOKEN }}
136
-
137
-
138
- - name : Download digests
139
- uses : actions/download-artifact@v4
140
- with :
141
- path : ./dist/
142
- # Use node-22 build.
143
- name : freqUI-22
144
-
145
-
146
- - name : Build and push Docker image
147
- id : build
148
- uses : docker/build-push-action@v6
149
- with :
150
- platforms : ${{ matrix.platform }}
151
- context : .
152
- file : ./docker/Dockerfile
153
- tags : ${{ steps.meta.outputs.tags }}
154
- outputs : type=image,name=freqtradeorg/frequi,push-by-digest=true,name-canonical=true,push=true
155
-
156
-
157
- - name : Export digest
158
- run : |
159
- mkdir -p /tmp/digests
160
- digest="${{ steps.build.outputs.digest }}"
161
- touch "/tmp/digests/${digest#sha256:}"
162
-
163
- - name : Upload digest
164
- uses : actions/upload-artifact@v4
165
- with :
166
- name : digests-${{ env.PLATFORM_PAIR }}
167
- path : /tmp/digests/*
168
- if-no-files-found : error
169
- retention-days : 1
170
-
171
- docker-merge :
172
- runs-on : ubuntu-latest
173
- needs :
174
- - docker
175
- environment :
176
- name : Production
177
-
178
- permissions :
179
- packages : write
180
-
181
- steps :
182
- - name : Download digests
183
- uses : actions/download-artifact@v4
184
- with :
185
- path : /tmp/digests
186
- pattern : digests-*
187
- merge-multiple : true
188
-
189
- - name : Set up Docker Buildx
190
- uses : docker/setup-buildx-action@v3
191
-
192
- - name : Docker meta
193
- id : meta
194
- uses : docker/metadata-action@v5
195
- with :
196
- # list of Docker images to use as base name for tags
197
- images : |
198
- freqtradeorg/frequi
199
- ghcr.io/freqtrade/frequi
200
- # generate Docker tags based on the following events/attributes
201
- tags : |
202
- type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
203
- type=semver,pattern={{version}}
204
- type=ref,event=branch
205
-
206
- - name : Login to Docker Hub
207
- uses : docker/login-action@v3
208
- with :
209
- username : ${{ secrets.DOCKERHUB_USERNAME }}
210
- password : ${{ secrets.DOCKERHUB_TOKEN }}
211
-
212
- - name : Login to GitHub Container Registry
213
- uses : docker/login-action@v3
214
- with :
215
- registry : ghcr.io
216
- username : ${{ github.repository_owner }}
217
- password : ${{ secrets.GITHUB_TOKEN }}
218
-
219
- - name : Create manifest list and push
220
- working-directory : /tmp/digests
221
- run : |
222
- docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
223
- $(printf 'freqtradeorg/frequi@sha256:%s ' *)
224
-
225
- - name : Inspect image
226
- run : |
227
- docker buildx imagetools inspect freqtradeorg/frequi:${{ steps.meta.outputs.version }}
98
+ if : (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release') && github.repository == 'freqtrade/frequi'
99
+ uses : ./.github/workflows/docker.yml
100
+ secrets :
101
+ DOCKERHUB_USERNAME : ${{ secrets.DOCKERHUB_USERNAME }}
102
+ DOCKERHUB_TOKEN : ${{ secrets.DOCKERHUB_TOKEN }}
0 commit comments