<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NodeJS on 施国鹏 (seth-shi)</title><link>https://sethix.com/zh-cn/tags/nodejs/</link><description>Recent content in NodeJS on 施国鹏 (seth-shi)</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Wed, 10 Sep 2025 17:31:46 +0800</lastBuildDate><atom:link href="https://sethix.com/zh-cn/tags/nodejs/index.xml" rel="self" type="application/rss+xml"/><item><title>使用 GitHub Actions 实现自动化部署到 Google Cloud Platform</title><link>https://sethix.com/zh-cn/posts/2025091017/</link><pubDate>Wed, 10 Sep 2025 17:31:46 +0800</pubDate><guid>https://sethix.com/zh-cn/posts/2025091017/</guid><description>本地测试 使用 https://github.com/nektos/act 1.jpeg 2.jpeg 构建脚本 name: &amp;#39;构建并部署到 GKE/Cloud Run&amp;#39; on: push: branches: - &amp;#39;main&amp;#39; - &amp;#39;dev&amp;#39; env: PROJECT_ID: &amp;#39;random-cloud-project-98765&amp;#39; GCLOUD_DOCKER_REGISTRY: &amp;#39;asia-northeast1-docker.pkg.dev&amp;#39; GCLOUD_DOCKER_IMAGE: random-cloud-project-98765/registry/awesome-app-service-${{ github.ref_name == &amp;#39;main&amp;#39; &amp;amp;&amp;amp; github.ref_name || &amp;#39;staging&amp;#39; }} CLOUD_RUN_SERVICE: &amp;#39;awesome-app-service-staging&amp;#39; GKE_NAMESPACE: &amp;#39;production&amp;#39; GKE_DEPLOYMENT_NAME: &amp;#39;awesome-app&amp;#39; GKE_CLUSTER: &amp;#39;main-cluster&amp;#39; GKE_LOCATION: &amp;#39;europe-west1&amp;#39; jobs: test: name: &amp;#39;单元测试占位&amp;#39; runs-on: &amp;#39;ubuntu-latest&amp;#39; steps: - name: &amp;#39;单元测试占位&amp;#39; id: build run: | # 生成带有日期和短 SHA 的标签 echo &amp;#34;Run tests...&amp;#34; build: name: &amp;#39;构建和推送镜像&amp;#39; runs-on: &amp;#39;ubuntu-latest&amp;#39; needs: test # 根据分支设置不同的环境 environment: ${{ github.</description></item></channel></rss>