-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (32 loc) · 1.14 KB
/
release.yaml
File metadata and controls
39 lines (32 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Docker Image Release
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
packages: write
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Preconditions
uses: ./.github/actions/preconditions
- name: Check versions
id: check_versions
uses: ./.github/actions/check-versions
- name: Update versions
if: ${{ steps.check_versions.outputs.versions_changed == 'true' }}
uses: ./.github/actions/update-versions
with:
mlflow_version: ${{ steps.check_versions.outputs.mlflow_version }}
mlflow_oidc_version: ${{ steps.check_versions.outputs.mlflow_oidc_version }}
- name: Build and push Docker image
if: ${{ steps.check_versions.outputs.versions_changed == 'true' }}
uses: ./.github/actions/build-and-push
with:
mlflow_version: ${{ steps.check_versions.outputs.mlflow_version }}
mlflow_oidc_version: ${{ steps.check_versions.outputs.mlflow_oidc_version }}
github_token: ${{ secrets.GITHUB_TOKEN }}