delete action
This commit is contained in:
@@ -1,46 +0,0 @@
|
|||||||
name: Build, Push and Redeploy Docker Image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-push:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
env:
|
|
||||||
REGISTRY_HOST: git.byte-mate.ru
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up QEMU (for multi-arch, optional)
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
|
||||||
run: |
|
|
||||||
echo "${{ secrets.GIT_PASSWORD }}" | docker login "${{ env.REGISTRY_HOST }}" -u "${{ github.actor }}" --password-stdin
|
|
||||||
|
|
||||||
- name: Get short SHA
|
|
||||||
id: vars
|
|
||||||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
run: |
|
|
||||||
docker buildx build \
|
|
||||||
--no-cache \
|
|
||||||
--push \
|
|
||||||
--platform linux/arm64/v8 \
|
|
||||||
--tag ${{ env.REGISTRY_HOST }}/drholy/rkllm-gradio-server:${{ env.sha_short }} \
|
|
||||||
--tag ${{ env.REGISTRY_HOST }}/drholy/rkllm-gradio-server:latest \
|
|
||||||
--push \
|
|
||||||
.
|
|
||||||
|
|
||||||
# - name: Redeploy stack in Portainer
|
|
||||||
# run: |
|
|
||||||
# curl -X POST "${{ secrets.PORTAINER_WEBHOOK_URL }}"
|
|
||||||
Reference in New Issue
Block a user