diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index df453819..53c7acb6 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -48,3 +48,7 @@ jobs: docker tag $IMAGE_NAME $IMAGE_ID:$VERSION # 进行 push docker push $IMAGE_ID:$VERSION + # push 到 latest + [ "$VERSION" != "latest" ] && docker tag $IMAGE_NAME $IMAGE_ID:latest + [ "$VERSION" != "latest" ] && docker push $IMAGE_ID:latest +