chore(versions): 😊 publish v0.7.6-alpha.2 (#954)
# Conflicts: # docker/app-mysql/docker-compose.yml # docker/app-postgres/docker-compose.yml # docker/app-sqlite/docker-compose.yml # docs/en-US/release-notes.md # docs/zh-CN/release-notes.md # lerna.json # packages/app/client/package.json # packages/app/server/package.json # packages/core/acl/package.json # packages/core/actions/package.json # packages/core/build/package.json # packages/core/cache/package.json # packages/core/cli/package.json # packages/core/client/package.json # packages/core/create-nocobase-app/package.json # packages/core/database/package.json # packages/core/devtools/package.json # packages/core/dumi-theme-nocobase/package.json # packages/core/resourcer/package.json # packages/core/sdk/package.json # packages/core/server/package.json # packages/core/test/package.json # packages/core/utils/package.json # packages/plugins/acl/package.json # packages/plugins/audit-logs/package.json # packages/plugins/china-region/package.json # packages/plugins/client/package.json # packages/plugins/collection-manager/package.json # packages/plugins/error-handler/package.json # packages/plugins/export/package.json # packages/plugins/file-manager/package.json # packages/plugins/multi-app-manager/package.json # packages/plugins/notifications/package.json # packages/plugins/system-settings/package.json # packages/plugins/ui-routes-storage/package.json # packages/plugins/ui-schema-storage/package.json # packages/plugins/users/package.json # packages/plugins/verification/package.json # packages/plugins/workflow/package.json # packages/presets/nocobase/package.json
This commit is contained in:
parent
5a9c8d4c4f
commit
f688f9e530
65
.github/workflows/release-ci.yml
vendored
Normal file
65
.github/workflows/release-ci.yml
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
name: release-ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-npm:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: node:16
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: yarn install and build
|
||||||
|
run: |
|
||||||
|
yarn config set registry https://registry.npmjs.org/
|
||||||
|
yarn install
|
||||||
|
yarn build
|
||||||
|
-
|
||||||
|
name: publish npmjs.org
|
||||||
|
run: |
|
||||||
|
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
|
||||||
|
yarn release:force --registry https://registry.npmjs.org/
|
||||||
|
push-docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: publish-npm
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
images: |
|
||||||
|
nocobase/nocobase
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
context: ./docker/nocobase
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: nocobase/nocobase:latest,${{ steps.meta.outputs.tags }}
|
@ -3,6 +3,7 @@ FROM node:16-stretch-slim as builder
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN cd /app \
|
RUN cd /app \
|
||||||
|
&& yarn config set network-timeout 600000 -g \
|
||||||
&& yarn create nocobase-app my-nocobase-app -a -e APP_ENV=production \
|
&& yarn create nocobase-app my-nocobase-app -a -e APP_ENV=production \
|
||||||
&& cd /app/my-nocobase-app \
|
&& cd /app/my-nocobase-app \
|
||||||
&& yarn install --production
|
&& yarn install --production
|
||||||
|
Loading…
Reference in New Issue
Block a user