From 847a6bb2dea08834a472e3cff9dcf2db095925dc Mon Sep 17 00:00:00 2001 From: Sam Lin <456807+maxisam@users.noreply.github.com.> Date: Mon, 28 Oct 2024 17:42:22 -0500 Subject: [PATCH 1/2] feat: test createbucketifneeded --- test/gh-actions/no-local.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/gh-actions/no-local.yml b/test/gh-actions/no-local.yml index 1393dc1..296b4cd 100644 --- a/test/gh-actions/no-local.yml +++ b/test/gh-actions/no-local.yml @@ -10,7 +10,8 @@ retry: s3: url: "http://127.0.0.1:9000" - bucket: "backup" + bucket: "backup2" accessKey: "AKIAIOSFODNN7EXAMPLE" secretKey: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" api: "S3v4" + createbucketifneeded: true From 5fb169fe222ca6a6abe5fb084d398aa506e1dc5f Mon Sep 17 00:00:00 2001 From: Sam Lin <456807+maxisam@users.noreply.github.com.> Date: Mon, 28 Oct 2024 17:42:38 -0500 Subject: [PATCH 2/2] refactor: Dockerfile lint --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d35484..bd97d75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,9 @@ ARG EN_MINIO=false ARG EN_RCLONE=false ARG VERSION -FROM maxisam/mongo-tool:${MONGODB_TOOLS_VERSION} as tools-builder +FROM maxisam/mongo-tool:${MONGODB_TOOLS_VERSION} AS tools-builder -FROM golang:1.21 as mgob-builder +FROM golang:1.21 AS mgob-builder ARG VERSION COPY . /go/src/github.com/stefanprodan/mgob WORKDIR /go/src/github.com/stefanprodan/mgob