fix: clone HKUDS/nanobot source before build (like Jenkinsfile)
Docker Build and Push / build (push) Successful in 3m44s
Docker Build and Push / build (push) Successful in 3m44s
This commit is contained in:
@@ -15,6 +15,9 @@ jobs:
|
||||
- name: Checkout
|
||||
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
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
@@ -39,8 +42,8 @@ jobs:
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: nanobot
|
||||
file: nanobot/Dockerfile
|
||||
context: external-nanobot
|
||||
file: external-nanobot/Dockerfile
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
Reference in New Issue
Block a user