Fix and test choco action (#911)
* ci(choco): fix action Signed-off-by: hackercat <me@hackerc.at> * fix(editorconfig): force style for all files, fix typo Signed-off-by: hackercat <me@hackerc.at> * ci(choco): test choco action Signed-off-by: hackercat <me@hackerc.at> * fix(editorconfig): unformat Dockerfile/sh Signed-off-by: hackercat <me@hackerc.at>
This commit is contained in:
15
.github/actions/choco/Dockerfile
vendored
15
.github/actions/choco/Dockerfile
vendored
@@ -2,18 +2,19 @@ FROM alpine:latest
|
||||
|
||||
ARG CHOCOVERSION=0.11.3
|
||||
|
||||
RUN apk add --no-cache bash ca-certificates \
|
||||
&& apk --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing add mono-dev \
|
||||
RUN apk add --no-cache bash ca-certificates git \
|
||||
&& apk --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing add mono mono-dev \
|
||||
&& cert-sync /etc/ssl/certs/ca-certificates.crt \
|
||||
&& wget "https://github.com/chocolatey/choco/archive/${CHOCOVERSION}.tar.gz" \
|
||||
&& tar -xzf "${CHOCOVERSION}.tar.gz" \
|
||||
&& mv "choco-${CHOCOVERSION}" /opt/chocolatey \
|
||||
&& wget "https://github.com/chocolatey/choco/archive/${CHOCOVERSION}.tar.gz" -O- | tar -xzf - \
|
||||
&& cd choco-"${CHOCOVERSION}" \
|
||||
&& chmod +x build.sh zip.sh \
|
||||
&& ./build.sh -v \
|
||||
&& ln -sf /opt /opt/chocolatey/opt \
|
||||
&& mv ./code_drop/chocolatey/console /opt/chocolatey \
|
||||
&& mkdir -p /opt/chocolatey/lib \
|
||||
&& apk del ca-certificates \
|
||||
&& rm -rf /choco-"${CHOCOVERSION}" \
|
||||
&& apk del mono-dev \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
ENV ChocolateyInstall=/opt/chocolatey
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
Reference in New Issue
Block a user