1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

更新
Some checks failed
pigallery2 / pigallery2-Gitea-Actions (push) Has been cancelled

This commit is contained in:
xuthus 2024-04-16 02:18:56 +08:00
parent 07c1d1741a
commit dc05d3b32d

View File

@ -16,17 +16,24 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Dependies Cache
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Build with Npm
run: |
npm install
npm run build
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
#build镜像并push到中央仓库中
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile.build