diff --git a/Dockerfile b/Dockerfile index e81f574..8d1f796 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,4 @@ -FROM plugins/base:amd64 - -LABEL maintainer="Bo-Yi Wu " \ - org.label-schema.name="Drone Packer" \ - org.label-schema.vendor="Bo-Yi Wu" \ - org.label-schema.schema-version="1.0" +FROM plugins/base:amd64 AS builder RUN apk add --no-cache ca-certificates \ wget && \ @@ -14,5 +9,13 @@ RUN wget -q https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PAC unzip packer.zip -d /bin && \ rm -f packer.zip +FROM plugins/base:multiarch + +LABEL maintainer="Bo-Yi Wu " \ + org.label-schema.name="Drone Packer" \ + org.label-schema.vendor="Bo-Yi Wu" \ + org.label-schema.schema-version="1.0" + +COPY --from=builder bin/packer /bin/ ADD release/linux/amd64/drone-packer /bin/ ENTRYPOINT ["/bin/drone-packer"] diff --git a/README.md b/README.md index f628b28..6c4181f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ [![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/drone-packer)](https://goreportcard.com/report/github.com/appleboy/drone-packer) [![Docker Pulls](https://img.shields.io/docker/pulls/appleboy/drone-packer.svg)](https://hub.docker.com/r/appleboy/drone-packer/) [![](https://images.microbadger.com/badges/image/appleboy/drone-packer.svg)](https://microbadger.com/images/appleboy/drone-packer "Get your own image badge on microbadger.com") -[![Release](https://github-release-version.herokuapp.com/github/appleboy/drone-packer/release.svg?style=flat)](https://github.com/appleboy/drone-packer/releases/latest) [![Build status](https://ci.appveyor.com/api/projects/status/pmkfbnwtlf1fm45l/branch/master?svg=true)](https://ci.appveyor.com/project/appleboy/drone-packer/branch/master) Drone plugin for build Automated machine images with [Packer](https://www.packer.io/). For the usage information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/drone-plugins/drone-packer/).