From cdc17f517e0a547a2c7c050c5ff51e13a6f56352 Mon Sep 17 00:00:00 2001 From: lbw Date: Sun, 12 Nov 2023 17:00:29 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20Adding=20CI=20build?= =?UTF-8?q?=20system.=20=E5=A2=9E=E5=8A=A0ci=20=E8=87=AA=E5=8A=A8=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :construction_worker: Adding CI build system. 增加ci 自动构建镜像 :construction_worker: Adding CI build system. 增加ci 自动构建镜像 --- .github/workflows/image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 5ee63040..726fffaf 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -38,16 +38,16 @@ jobs: run: ${{ matrix.npm-client }} install - name: Build - run: ${{ matrix.npm-client }} run 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 build + docker-compose -f ./docker/docker-compose.yaml build registry="registry.cn-hangzhou.aliyuncs.com/pigx/" - for service in $(docker-compose config --services); do + 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