From 62ba7cf04ae940a82a0e49c30c16db9f52385e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Thu, 15 Aug 2024 09:35:04 +0800 Subject: [PATCH] =?UTF-8?q?ci(github=20action):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BA=E9=95=9C=E5=83=8F=EF=BC=8C?= =?UTF-8?q?=20=E7=9B=AE=E5=89=8Dgithub=20=20action=20=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/image.yml | 41 ------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/image.yml diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml deleted file mode 100644 index bb91ed52..00000000 --- a/.github/workflows/image.yml +++ /dev/null @@ -1,41 +0,0 @@ -# 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: PIG 镜像 action - -on: - push: - branches: [ jdk17 ] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - java-version: [ 17 ] - steps: - - uses: actions/checkout@v4 - - name: Set up JDK ${{ matrix.java-version }} - uses: actions/setup-java@v4 - with: - java-version: ${{ matrix.java-version }} - distribution: 'zulu' - - - name: mvn clean install - run: mvn clean install -Pcloud - - - 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 - registry="registry.cn-hangzhou.aliyuncs.com/pigx/" - for service in $(docker-compose config --services); do - if [ "$service" != "pig-redis" ]; then - docker tag ${service}:latest ${registry}${service}:latest - docker push ${registry}${service}:latest - else - echo "Skipping pig-redis service" - fi - done