Skip to content

Commit f5e4284

Browse files
committed
Minor changes
1 parent 7abb0a9 commit f5e4284

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

docker/Dockerfile.linux.arm64

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
FROM plugins/base:multiarch as builder
2-
3-
FROM scratch
1+
FROM plugins/base:multiarch
42

53
LABEL maintainer="Drone.IO Community <[email protected]>" \
64
org.label-schema.name="Drone S3" \
75
org.label-schema.vendor="Drone.IO Community" \
86
org.label-schema.schema-version="1.0"
97

108
ADD release/linux/arm64/drone-s3 /bin/
11-
12-
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
13-
14-
ENTRYPOINT ["/bin/drone-s3"]
9+
ENTRYPOINT ["/bin/drone-s3"]

plugin.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type Plugin struct {
4646
// sa-east-1
4747
Region string
4848

49-
// if true, plugin is set to download mode, which means `target` from the bucket will be downloaded
49+
// if true, plugin is set to download mode, which means `source` from the bucket will be downloaded
5050
Download bool
5151

5252
// Indicates the files ACL, which should be one
@@ -145,7 +145,6 @@ func (p *Plugin) Exec() error {
145145
}
146146

147147
if p.Download {
148-
// sourceDir := strings.TrimPrefix(filepath.ToSlash(p.Source), "/")
149148
sourceDir := normalizePath(p.Source)
150149

151150
log.WithFields(log.Fields{
@@ -196,7 +195,7 @@ func (p *Plugin) Exec() error {
196195
log.WithFields(log.Fields{
197196
"error": err,
198197
"file": target,
199-
}).Error("Problem opening file for writing")
198+
}).Error("Failed to create file")
200199
return err
201200
}
202201
defer f.Close()

0 commit comments

Comments
 (0)