Skip to content

Commit 74b3787

Browse files
committed
Move models images push to the separate job
1 parent 9a41a8f commit 74b3787

File tree

1 file changed

+46
-3
lines changed

1 file changed

+46
-3
lines changed

.github/workflows/images.yml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ jobs:
169169
- servers/tfserving_proxy
170170
- components/alibi-explain-server
171171
- components/alibi-detect-server
172-
# - components/routers/epsilon-greedy
173-
# - examples/models/mean_classifier
174-
# - testing/docker/echo-model
175172
steps:
176173
- name: Checkout Git Commit
177174
uses: actions/checkout@v4
@@ -236,3 +233,49 @@ jobs:
236233
VERSION: ${{ steps.docker-tag.outputs.value }}
237234
run: |
238235
make docker-build-and-push-prod
236+
237+
models:
238+
runs-on: ubuntu-latest
239+
strategy:
240+
matrix:
241+
model:
242+
- components/routers/epsilon-greedy
243+
- examples/models/mean_classifier
244+
- testing/docker/echo-model
245+
steps:
246+
- name: Checkout Git Commit
247+
uses: actions/checkout@v4
248+
249+
- name: Free up disk space (android, haskell, dotnet, toolchains, caches)
250+
run: |
251+
sudo rm -rf /usr/local/lib/android || true
252+
sudo rm -rf /opt/ghc || true
253+
sudo rm -rf /usr/share/dotnet || true
254+
sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true
255+
sudo rm -rf /opt/hostedtoolcache || true
256+
sudo rm -rf /home/runner/.cache/pip || true
257+
df -h
258+
259+
- name: Login to DockerHub
260+
uses: docker/login-action@v3
261+
with:
262+
username: ${{ secrets.DOCKER_USERNAME }}
263+
password: ${{ secrets.DOCKER_PASSWORD }}
264+
265+
- name: Set default docker tag for builds from master
266+
id: docker-tag
267+
run: |
268+
USER_INPUT="${{ github.event.inputs.docker-tag }}"
269+
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT
270+
271+
- name: Set up Docker Buildx
272+
uses: docker/setup-buildx-action@v3
273+
with:
274+
cleanup: true
275+
276+
- name: Build and push (model)
277+
working-directory: ./${{ matrix.model }}/
278+
env:
279+
VERSION: ${{ steps.docker-tag.outputs.value }}
280+
run: |
281+
make docker-build docker-push

0 commit comments

Comments
 (0)