Skip to content

Scheduled Re-Build Images #80

Scheduled Re-Build Images

Scheduled Re-Build Images #80

# Copyright 2023 Iguazio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Scheduled Re-Build Images
on:
schedule:
# every night at 2am
- cron: "0 2 * * *"
jobs:
re-build-images:
if: github.repository == 'mlrun/mlrun'
strategy:
fail-fast: false
matrix:
repo: ["mlrun","ui"]
branch: ["development","1.4.x", "1.3.x"]
runs-on: ubuntu-latest
steps:
# TODO: move to reuseable workflow once all branches have backported with the new workflow
- name: Re-Build MLRun Image
if: matrix.repo == 'mlrun'
uses: convictional/[email protected]
with:
owner: mlrun
repo: mlrun
github_token: ${{ secrets.RELEASE_GITHUB_ACCESS_TOKEN }}
workflow_file_name: build.yaml
ref: ${{ matrix.branch }}
wait_interval: 60
client_payload: '{"skip_images": "models-gpu,models,base,tests", "build_from_cache": "false"}'
- name: Re-Build UI Image
if: matrix.repo == 'ui'
uses: convictional/[email protected]
with:
owner: mlrun
repo: ui
github_token: ${{ secrets.RELEASE_GITHUB_ACCESS_TOKEN }}
workflow_file_name: build.yaml
ref: ${{ matrix.branch }}
wait_interval: 60