Fix/venus build env (#415)
fix: venus build env Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
This commit is contained in:
1
.github/deployment/Dockerfile-affine
vendored
1
.github/deployment/Dockerfile-affine
vendored
@@ -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 . .
|
||||||
|
|||||||
6
.github/workflows/livedemo.yml
vendored
6
.github/workflows/livedemo.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user