Compare commits

...

14 Commits

Author SHA1 Message Date
ff0d3954e2
publish and dryrun using official plugin
Some checks failed
continuous-integration/drone/push Build is failing
2021-11-05 14:42:21 +01:00
TP Honey
800bf7977a
Merge pull request #338 from tphoney/bump-go-1.13
Some checks failed
continuous-integration/drone/push Build is failing
(maint) bump git to 1.13 for build and test
2021-11-05 14:29:57 +01:00
TP Honey
127d5764c2
Merge pull request #337 from tphoney/prep_v19.03.9
(maint) v19.03.9 release prep
2021-11-05 14:29:22 +01:00
Eoin McAfee
e3d4604db9
Merge pull request #333 from jimsheldon/ecr-externalid
adding support for externalId
2021-11-05 14:28:49 +01:00
Brad Rydzewski
471054e703
log available credentials before login 2021-11-05 14:28:39 +01:00
Brad Rydzewski
3eb0d9c3ac
use Replace instead of ReplaceAll 2021-11-05 14:28:34 +01:00
Brad Rydzewski
f8250646cf
print login failure reason to output 2021-11-05 14:28:33 +01:00
techknowlogick
14b5472057
Update seccomp to 20.10 docker (#322)
* Update seccomp to 20.10 docker
2021-11-05 14:27:46 +01:00
TP Honey
e4140a5ddf
Merge pull request #323 from tphoney/docker_rate_limit
(maint) CI, remove the dry run steps, due to rate limiting
2021-11-05 14:27:45 +01:00
Brad Rydzewski
0a057b4c54
Merge pull request #300 from rvoitenko/ecr_scan_on_push
ECR: adding setting to enable image scanning while repo creation
2021-11-05 14:27:44 +01:00
51e3b30dcc
wip: attempt to dogfood again 2021-11-05 14:25:48 +01:00
610a78f71c
switch back to plugins/docker 2021-11-05 14:25:24 +01:00
f4401e8852
ci: use immawanderer/drone-docker
...so we're dogfooding now..
2021-11-05 14:25:22 +01:00
f2e9f1e0a3
docker: add multiple different image tags
rolling:
* latest
* edge-dind

fixed to a commit:
* ${DRONE_COMMIT_SHA:0:8}
* ${DRONE_COMMIT_SHA:0:8}-edge-dind
* ${DRONE_COMMIT_SHA:0:8}-linux-amd64
2021-11-05 14:24:05 +01:00
5 changed files with 25 additions and 2 deletions

@ -8,6 +8,7 @@ platform:
steps:
- name: vet
pull: always
image: golang:1.13
commands:
- go vet ./...
@ -18,6 +19,7 @@ steps:
path: /go
- name: test
pull: always
image: golang:1.13
commands:
- go test -cover ./...
@ -49,6 +51,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.13
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker"
@ -61,6 +64,7 @@ steps:
- tag
- name: build-tag
pull: always
image: golang:1.13
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker"
@ -72,6 +76,7 @@ steps:
- tag
- name: executable
pull: always
image: golang:1.13
commands:
- ./release/linux/amd64/drone-docker --help
@ -80,7 +85,7 @@ steps:
pull: always
image: plugins/docker:linux-amd64
settings:
daemon_off: false
daemon_off: true
dockerfile: docker/docker/Dockerfile.linux.amd64
dry_run: true
repo: immawanderer/drone-docker

BIN
cmd/drone-ecr/drone-ecr Executable file

Binary file not shown.

@ -2,5 +2,14 @@ FROM docker:20.10.10-dind
ENV DOCKER_HOST=unix:///var/run/docker.sock
RUN apk --update add --virtual .build-deps curl && \
mkdir -p /etc/docker/ && \
curl -SsL -o /etc/docker/default.json https://raw.githubusercontent.com/moby/moby/20.10/profiles/seccomp/default.json && \
sed -i 's/SCMP_ACT_ERRNO/SCMP_ACT_TRACE/g' /etc/docker/default.json && \
chmod 600 /etc/docker/default.json && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
ADD release/linux/amd64/drone-docker /bin/
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "/bin/drone-docker"]

@ -4,7 +4,7 @@ ENV DOCKER_HOST=unix:///var/run/docker.sock
RUN apk --update add --virtual .build-deps curl && \
mkdir -p /etc/docker/ && \
curl -SsL -o /etc/docker/default.json https://raw.githubusercontent.com/moby/moby/19.03/profiles/seccomp/default.json && \
curl -SsL -o /etc/docker/default.json https://raw.githubusercontent.com/moby/moby/20.10/profiles/seccomp/default.json && \
sed -i 's/SCMP_ACT_ERRNO/SCMP_ACT_TRACE/g' /etc/docker/default.json && \
chmod 600 /etc/docker/default.json && \
apk del .build-deps && \

@ -2,5 +2,14 @@ FROM arm64v8/docker:19.03.8-dind
ENV DOCKER_HOST=unix:///var/run/docker.sock
RUN apk --update add --virtual .build-deps curl && \
mkdir -p /etc/docker/ && \
curl -SsL -o /etc/docker/default.json https://raw.githubusercontent.com/moby/moby/20.10/profiles/seccomp/default.json && \
sed -i 's/SCMP_ACT_ERRNO/SCMP_ACT_TRACE/g' /etc/docker/default.json && \
chmod 600 /etc/docker/default.json && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
ADD release/linux/arm64/drone-docker /bin/
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "/bin/drone-docker"]