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