diff --git a/.drone.jsonnet b/.drone.jsonnet index a3c9e9c..ba0efa3 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -77,6 +77,7 @@ local PipelineBuildBinaries = { name: 'executable', image: 'alpine', commands: [ + 'apk --update add --no-cache libc6-compat', '$(find dist/ -executable -type f -iname ${DRONE_REPO_NAME}-linux-amd64) --help', ], }, diff --git a/.drone.yml b/.drone.yml index e4b7788..8779cdc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -58,6 +58,7 @@ steps: - name: executable image: alpine commands: + - apk --update add --no-cache libc6-compat - $(find dist/ -executable -type f -iname ${DRONE_REPO_NAME}-linux-amd64) --help - name: changelog-generate @@ -456,6 +457,6 @@ depends_on: --- kind: signature -hmac: db6f6aaea94d93b9e62552f392651928df69f8ea87ca5058e06738dd8a791cd1 +hmac: e76ad8c9ff11e9e93d3e987ee2aeb8a89b41652ae851165e0fd8f3e6651e6a2c ... diff --git a/docker/Dockerfile.amd64 b/docker/Dockerfile.amd64 index 5b5bf04..5f7de62 100644 --- a/docker/Dockerfile.amd64 +++ b/docker/Dockerfile.amd64 @@ -7,6 +7,10 @@ LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-s3-sync" LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-s3-sync" LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-s3-sync" +RUN apk --update add --no-cache libc6-compat && \ + rm -rf /var/cache/apk/* && \ + rm -rf /tmp/* + ADD dist/drone-s3-sync /bin/ ENTRYPOINT ["/bin/drone-s3-sync"] diff --git a/docker/Dockerfile.arm b/docker/Dockerfile.arm index 928a768..0b39808 100644 --- a/docker/Dockerfile.arm +++ b/docker/Dockerfile.arm @@ -7,6 +7,10 @@ LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-s3-sync" LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-s3-sync" LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-s3-sync" +RUN apk --update add --no-cache libc6-compat && \ + rm -rf /var/cache/apk/* && \ + rm -rf /tmp/* + ADD dist/drone-s3-sync /bin/ ENTRYPOINT ["/bin/drone-s3-sync"] diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index c3dd1bc..74c6155 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -7,6 +7,10 @@ LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-s3-sync" LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-s3-sync" LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-s3-sync" +RUN apk --update add --no-cache libc6-compat && \ + rm -rf /var/cache/apk/* && \ + rm -rf /tmp/* + ADD dist/drone-s3-sync /bin/ ENTRYPOINT ["/bin/drone-s3-sync"] diff --git a/go.mod b/go.mod index 522336e..f08c2df 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/thegeeklab/drone-s3-sync go 1.19 require ( - github.com/aws/aws-sdk-go v1.44.70 + github.com/aws/aws-sdk-go v1.44.127 github.com/joho/godotenv v1.4.0 github.com/ryanuber/go-glob v1.0.0 github.com/sirupsen/logrus v1.9.0 diff --git a/go.sum b/go.sum index 9b5f9ae..d4524d0 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.44.70 h1:wrwAbqJqf+ncEK1F/bXTYpgO6zXIgQXi/2ppBgmYI9g= -github.com/aws/aws-sdk-go v1.44.70/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +github.com/aws/aws-sdk-go v1.44.127 h1:IoO2VfuIQg1aMXnl8l6OpNUKT4Qq5CnJMOyIWoTYXj0= +github.com/aws/aws-sdk-go v1.44.127/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=