forked from LiveCarta/AIServicesBaseImages
Uncommented image push, added gitea workflow
This commit is contained in:
31
.gitea/workflows/build.yaml
Normal file
31
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user