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 }}