Skip to content

Commit

Permalink
build: consolidate Dockerfiles for multi-architecture support
Browse files Browse the repository at this point in the history
- Add a new Dockerfile for multi-architecture support using Alpine 3.20
- Remove Dockerfile for linux.amd64
- Remove Dockerfile for linux.arm
- Remove Dockerfile for linux.arm64
- Remove Dockerfile for windows
- Remove Docker manifest template file

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Oct 4, 2024
1 parent 1cbab46 commit 86574d9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 65 deletions.
20 changes: 20 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM alpine:3.20

ARG TARGETOS
ARG TARGETARCH

LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
org.label-schema.name="Drone Jenkins Plugin" \
org.label-schema.vendor="Bo-Yi Wu" \
org.label-schema.schema-version="1.0"

LABEL org.opencontainers.image.source=https://github.com/appleboy/drone-jenkins
LABEL org.opencontainers.image.description="Drone Jenkins"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --no-cache ca-certificates && \
rm -rf /var/cache/apk/*

COPY release/${TARGETOS}/${TARGETARCH}/drone-jenkins /bin/

ENTRYPOINT ["/bin/drone-jenkins"]
10 changes: 0 additions & 10 deletions docker/Dockerfile.linux.amd64

This file was deleted.

10 changes: 0 additions & 10 deletions docker/Dockerfile.linux.arm

This file was deleted.

10 changes: 0 additions & 10 deletions docker/Dockerfile.linux.arm64

This file was deleted.

10 changes: 0 additions & 10 deletions docker/Dockerfile.windows

This file was deleted.

25 changes: 0 additions & 25 deletions docker/manifest.tmpl

This file was deleted.

0 comments on commit 86574d9

Please sign in to comment.