forked from LiveCarta/AIServicesBaseImages
31 lines
737 B
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" |