mirror of https://github.com/k3s-io/k3s
commit
6592b61210
@ -0,0 +1,16 @@
|
||||
FROM golang:1.13.5-alpine3.10
|
||||
|
||||
COPY --from=plugins/manifest:1.2.3 /bin/* /bin/
|
||||
|
||||
ARG DOCKER_USERNAME
|
||||
ENV DOCKER_USERNAME $DOCKER_USERNAME
|
||||
|
||||
ARG DOCKER_PASSWORD
|
||||
ENV DOCKER_PASSWORD $DOCKER_PASSWORD
|
||||
|
||||
ARG DRONE_TAG
|
||||
ENV DRONE_TAG $DRONE_TAG
|
||||
|
||||
COPY ./scripts/manifest /bin/
|
||||
|
||||
RUN manifest
|
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "${DRONE_TAG}" ]; then
|
||||
echo "DRONE_TAG not defined" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -e -x
|
||||
|
||||
export REPO="rancher/k3s"
|
||||
export DRONE_TAG=$(echo "${DRONE_TAG}" | sed -e 's/+/-/g')
|
||||
export PLUGIN_TARGET="${REPO}:${DRONE_TAG}"
|
||||
export PLUGIN_TEMPLATE="${REPO}:${DRONE_TAG}-ARCH"
|
||||
export PLUGIN_PLATFORMS="linux/amd64,linux/arm64,linux/arm"
|
||||
|
||||
drone-manifest
|
Loading…
Reference in new issue