From 39ac71ce0c1ba5fa5f61ad86eec007a04765396a Mon Sep 17 00:00:00 2001 From: wenty22 Date: Tue, 24 Dec 2024 15:53:14 +0800 Subject: [PATCH] chore: Update workflow --- .github/workflows/release.yaml | 6 +++--- .github/workflows/server.yaml | 1 + apps/canonical-bridge-server/Dockerfile | 3 +++ apps/canonical-bridge-server/src/common/constants/index.ts | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f4b058f6..67dda9c2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,7 +4,7 @@ on: push: branches: - main - - alpha + - alpha/packages paths: - .release/** @@ -45,11 +45,11 @@ jobs: node common/scripts/install-run-rush.js build -t @bnb-chain/canonical-bridge-widget - name: Enter pre mode - if: ${{steps.get-branch.outputs.branch == 'alpha'}} + if: ${{steps.get-branch.outputs.branch == 'alpha/packages'}} run: cd .release && pnpm ci:enter - name: Create and publish alpha versions - if: ${{steps.get-branch.outputs.branch == 'alpha'}} + if: ${{steps.get-branch.outputs.branch == 'alpha/packages'}} uses: changesets/action@v1 with: version: pnpm ci:alpha-version diff --git a/.github/workflows/server.yaml b/.github/workflows/server.yaml index 0465f8ad..2e93fafb 100644 --- a/.github/workflows/server.yaml +++ b/.github/workflows/server.yaml @@ -4,6 +4,7 @@ on: push: branches: - main + - alpha/server paths: - apps/canonical-bridge-server/** diff --git a/apps/canonical-bridge-server/Dockerfile b/apps/canonical-bridge-server/Dockerfile index c31451c6..4a18b954 100644 --- a/apps/canonical-bridge-server/Dockerfile +++ b/apps/canonical-bridge-server/Dockerfile @@ -1,6 +1,9 @@ FROM busybox:1.36.1 as builder FROM node:20-buster +RUN useradd -u 9000 appuser +USER appuser + WORKDIR /opt/deploy COPY . . diff --git a/apps/canonical-bridge-server/src/common/constants/index.ts b/apps/canonical-bridge-server/src/common/constants/index.ts index 1d172896..280ff0a6 100644 --- a/apps/canonical-bridge-server/src/common/constants/index.ts +++ b/apps/canonical-bridge-server/src/common/constants/index.ts @@ -69,7 +69,7 @@ export const STARGATE_CHAIN_INFO = [ { chainId: 10, chainName: 'Optimism', - endpointID: 30110, + endpointID: 30111, }, { chainId: 14,