From e72acdeefaa981c10f8324486b71e7e1e5997c27 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 00:26:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC9=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 | 4 ++-- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index edebd93..e868f11 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -24,7 +24,7 @@ jobs: run: mvn -B package --file pom.xml # 通过 Dockerfile 构建镜像 - name: Build docker image - run: docker build . -t demo_actions:v1.0 + run: docker build . -t demo_actions:0.1 # 登陆到我们自己的 docker registry - name: Login to aliyun docker image registry @@ -32,5 +32,5 @@ jobs: # 上传 docker 镜像 - name: Push image to aliyun docker image registry - run: docker push demo_actions:v1.0 + run: docker push demo_actions:0.1 diff --git a/Dockerfile b/Dockerfile index 6f9f2b3..88e43de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # FROM 指定基础镜像 FROM openjdk:8-jdk-alpine # COPY 复制文件 -COPY *.jar app.jar +add *.jar app.jar # 暴露端口 EXPOSE 8080 # CMD 容器启动命令