This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AIServicesBaseImages/.gitea/workflows/build.yaml

31 lines
737 B
YAML

name: Build ML Base Image
on:
workflow_dispatch:
# push:
# branches:
# - main
# - master
# paths:
# - MLBaseDockerfile
# - '**/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to container registry
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.PUSH_REGISTRY }} -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build image
run: |
docker build -f MLBaseDockerfile -t "${{ secrets.PUSH_REGISTRY }}/ml-base:latest" .
- name: Push image
run: |
docker push "${{ secrets.PUSH_REGISTRY }}/ml-base:latest"