-
Notifications
You must be signed in to change notification settings - Fork 66
32 lines (31 loc) · 984 Bytes
/
release-image.yaml
File metadata and controls
32 lines (31 loc) · 984 Bytes
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
name: Image
on:
push:
branches: [ "release" ]
pull_request:
branches: [ "release" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Free up disk space"
uses: ./.github/actions/free-up-disk-space
- name: Build UBI9 Prod Image
run: |
docker build \
-t fms-hf-tuning:ubi9-latest \
-t fms-hf-tuning:release-ubi9-latest \
-f build/Dockerfile .
- name: Login to Quay.io
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Push docker image to Quay.io
if: github.event_name == 'push'
run: |
docker push ${{ env.QUAY_REPOSITORY }}/fms-hf-tuning:ubi9-latest
docker push ${{ env.QUAY_REPOSITORY }}/fms-hf-tuning:release-ubi9-latest