Erki a9bcf8c95b
All checks were successful
Build and push latest / publish (push) Successful in 39s
Fix LFS files not being pulled in the build
2024-10-01 21:36:49 +03:00

29 lines
733 B
YAML

name: Build and push latest
run-name: Build and push latest
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
if: gitea.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to registry
uses: docker/login-action@v3
with:
registry: git.skullnet.me
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: "git.skullnet.me/erki/embeddingcpp:latest"
file: Dockerfile