-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (57 loc) · 1.85 KB
/
release-docker.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Docker
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Test scenario tags'
required: false
type: boolean
push:
branches: [main, "release/*"]
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-22.04
# only on releases
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'release'
strategy:
fail-fast: false
matrix:
# initially building only the latest supported configuration
python_version: ["3.12"]
pytorch_version: ["2.6.0"]
cust_base: ["cu12.6.2-"]
pl_version: ["2.6"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get release version
id: get_version
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF##*/v})" >> $GITHUB_OUTPUT
- name: Publish Latest to Docker
uses: docker/build-push-action@v2
with:
context: .
push: true
file: dockers/release/Dockerfile
build-args: |
PYTHON_VERSION=${{ matrix.python_version }}
PYTORCH_VERSION=${{ matrix.pytorch_version }}
CUST_BASE=${{ matrix.cust_base }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/finetuning-scheduler:fts${{ steps.get_version.outputs.RELEASE_VERSION }}-${{ matrix.cust_base }}py${{ matrix.python_version }}-pt${{ matrix.pytorch_version }}-pl${{ matrix.pl_version }},${{ secrets.DOCKERHUB_USERNAME }}/finetuning-scheduler:latest
timeout-minutes: 55