mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-25 22:16:49 +08:00
chore: update .gitignore and simplify cd.yml
This commit is contained in:
parent
aeb524625e
commit
ebbb13b6bc
25
.github/workflows/cd.yml
vendored
25
.github/workflows/cd.yml
vendored
@ -25,8 +25,7 @@ jobs:
|
||||
- name: 'Set up Cloud SDK'
|
||||
uses: 'google-github-actions/setup-gcloud@v2'
|
||||
- name: "Docker auth"
|
||||
run: |-
|
||||
gcloud auth configure-docker us-docker.pkg.dev --quiet
|
||||
run: gcloud auth configure-docker us-docker.pkg.dev --quiet
|
||||
- name: Set controller release version
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
- name: Set up Node.js
|
||||
@ -34,11 +33,10 @@ jobs:
|
||||
with:
|
||||
node-version: 22.12.0
|
||||
cache: npm
|
||||
|
||||
- name: npm install
|
||||
run: npm ci
|
||||
- name: build application
|
||||
run: npm run build
|
||||
- name: Install and build
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
- name: Set package version
|
||||
run: npm version --no-git-tag-version ${{ env.RELEASE_VERSION }}
|
||||
if: github.ref_type == 'tag'
|
||||
@ -46,12 +44,7 @@ jobs:
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
us-docker.pkg.dev/research-df067/deepresearch/node-deep-research
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
images: us-docker.pkg.dev/research-df067/deepresearch/node-deep-research
|
||||
- name: Build and push
|
||||
id: container
|
||||
uses: docker/build-push-action@v6
|
||||
@ -62,5 +55,9 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
- name: Deploy with Tag
|
||||
run: |
|
||||
gcloud run deploy node-deep-research --image us-docker.pkg.dev/research-df067/deepresearch/node-deep-research@${{steps.container.outputs.imageid}} --tag ${{ env.RELEASE_VERSION }} --region us-central1 --async
|
||||
gcloud run deploy node-deep-research \
|
||||
--image us-docker.pkg.dev/research-df067/deepresearch/node-deep-research@${{steps.container.outputs.imageid}} \
|
||||
--tag ${{ env.RELEASE_VERSION }} \
|
||||
--region us-central1 \
|
||||
--async
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
.DS_Store
|
||||
|
||||
# Files
|
||||
tasks/
|
||||
context.json
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user