From ea355930d9d5f12c1382d3b70db57a44e91994aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8A=E5=AE=98=E6=98=93=E6=B3=BD?= <15837994614@163.com> Date: Sat, 7 Aug 2021 01:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC15=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/maven.yml | 2 +- .github/workflows/maven1.yml | 33 --------------------------------- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 .github/workflows/maven1.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 812dd82..3f9a73d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -31,5 +31,5 @@ jobs: run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login --username=shuangguanyize registry.cn-hangzhou.aliyuncs.com --password-stdin # 上传 docker 镜像 - name: Push image to aliyun docker image registry - run: docker push registry.cn-hangzhou.aliyuncs.com/yvam0910/demo_actions:0.1 + run: docker push \ No newline at end of file diff --git a/.github/workflows/maven1.yml b/.github/workflows/maven1.yml deleted file mode 100644 index 9f225d0..0000000 --- a/.github/workflows/maven1.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Java CI with Maven - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@master - - name: Set up JDK 8 - uses: actions/setup-java@v2 - with: - java-version: '1.8' - distribution: 'adopt' - - name: Build with Maven - run: mvn -B package --file pom.xml - # 通过 Dockerfile 构建镜像 - - name: Build docker image - run: docker build . -t {{ image_name:image_version }} - - # 登陆到我们自己的 docker registry - - name: Login to aliyun docker image registry - run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login --username=shangguanyize registry.cn-hangzhou.aliyuncs.com --password-stdin - - # 上传 docker 镜像 - - name: Push image to aliyun docker image registry - run: docker push {{ image_name:image_version }}