mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 21:22:33 +08:00
6da6a7b270
Some checks failed
npm run build 测试 / task (18.x, npm, macOS-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, npm, ubuntu-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, npm, windows-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, pnpm, macOS-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, pnpm, ubuntu-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, pnpm, windows-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, yarn, macOS-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, yarn, ubuntu-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, yarn, windows-latest) (push) Has been cancelled
同步代码 / gitcode (push) Has been cancelled
同步代码 / gitlink (push) Has been cancelled
同步代码 / gitee (push) Has been cancelled
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
# This workflow will build a Java project with Maven
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
|
|
name: Docker 镜像
|
|
|
|
on:
|
|
push:
|
|
branches: [ dev ]
|
|
|
|
jobs:
|
|
task:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
node-version: [18.x]
|
|
npm-client: [npm]
|
|
|
|
steps:
|
|
- uses: pnpm/action-setup@v2
|
|
if: matrix.npm-client == 'pnpm'
|
|
name: Install pnpm
|
|
with:
|
|
version: 7
|
|
run_install: false
|
|
|
|
- name: Set up Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: ${{ matrix.npm-client }} install
|
|
|
|
- name: Build
|
|
run: ${{ matrix.npm-client }} run build:docker
|
|
|
|
- name: Login to Docker Registry
|
|
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} registry.cn-hangzhou.aliyuncs.com
|
|
|
|
- name: Build and push Docker images
|
|
run: |
|
|
docker compose -f ./docker/docker-compose.yaml build
|
|
registry="registry.cn-hangzhou.aliyuncs.com/pigx/"
|
|
for service in $(docker-compose -f ./docker/docker-compose.yaml config --services); do
|
|
docker tag ${service}:latest ${registry}${service}:latest
|
|
docker push ${registry}${service}:latest
|
|
done
|