Fix/venus build env (#415)

fix: venus build env

Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
This commit is contained in:
zuomeng wang
2022-09-13 21:00:45 +08:00
committed by GitHub
parent 3ba616dddc
commit 2b141851a0
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
FROM node:16-alpine as builder FROM node:16-alpine as builder
ARG HUBSPOT_API_SECRET
WORKDIR /app WORKDIR /app
RUN apk add git && npm i -g pnpm@7 RUN apk add git && npm i -g pnpm@7
COPY . . COPY . .

View File

@@ -1,4 +1,4 @@
name: Build AFFiNE-Local name: Build AFFiNE-Livedemo
on: on:
push: push:
@@ -64,14 +64,14 @@ jobs:
- name: Build and push Docker image (AFFINE-Local) - name: Build and push Docker image (AFFINE-Local)
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
env:
HUBSPOT_API_SECRET: ${{ secrets.SuperSecret }}
with: with:
context: . context: .
push: true push: true
file: ./.github/deployment/Dockerfile-affine file: ./.github/deployment/Dockerfile-affine
tags: ${{ env.LOCAL_CACHE }} tags: ${{ env.LOCAL_CACHE }}
target: AFFiNE target: AFFiNE
build-args: |
HUBSPOT_API_SECRET=${{ secrets.HUBSPOT_API_SECRET }}
- name: Build and push Docker image (AFFINE-Local) - name: Build and push Docker image (AFFINE-Local)
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3