feat: update Dockerfile and requirements for ML dependencies; add base image build workflow
This commit is contained in:
parent
57a51f3ba3
commit
252ef468c9
5 changed files with 64 additions and 20 deletions
37
.gitea/workflows/build-base.yml
Normal file
37
.gitea/workflows/build-base.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Build Worker Base Image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
paths:
|
||||
- 'Dockerfile.base'
|
||||
- 'requirements.base.txt'
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-base:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.siwatsystem.com
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.RUNNER_TOKEN }}
|
||||
|
||||
- name: Build and push base Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile.base
|
||||
push: true
|
||||
tags: git.siwatsystem.com/adsist-cms/worker-base:latest
|
Loading…
Add table
Add a link
Reference in a new issue