fix: clone HKUDS/nanobot source before build (like Jenkinsfile)
Docker Build and Push / build (push) Successful in 3m44s

This commit is contained in:
Sagent
2026-05-29 22:09:01 +00:00
parent 5ee6bad8be
commit fcdde47194
+5 -2
View File
@@ -15,6 +15,9 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Clone HKUDS/nanobot source
run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4 uses: docker/setup-buildx-action@v4
@@ -39,8 +42,8 @@ jobs:
- name: Build and push - name: Build and push
uses: docker/build-push-action@v7 uses: docker/build-push-action@v7
with: with:
context: nanobot context: external-nanobot
file: nanobot/Dockerfile file: external-nanobot/Dockerfile
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}