Skip to content

Commit

Permalink
👷 Adding CI build system. 增加ci 自动构建镜像
Browse files Browse the repository at this point in the history
👷 Adding CI build system. 增加ci 自动构建镜像

👷 Adding CI build system. 增加ci 自动构建镜像
  • Loading branch information
lbw committed Nov 12, 2023
1 parent 301993b commit cdc17f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cdc17f5

Please sign in to comment.