Erki 85ff409a3b
All checks were successful
Build and push latest / publish (push) Successful in 46s
Maybe this will pull LFS files?
2024-10-01 21:55:06 +03:00

32 lines
828 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: Checkout LFS files
uses: actions/checkout@v4
- run: git lfs pull
- 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