chore(): Upgrades alpine while at it
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
Elia el Lazkani 2024-01-20 00:14:03 +01:00
parent 62a22dec12
commit ee91229c8f

View file

@ -3,7 +3,7 @@ MAINTAINER Elia El Lazkani <git@lazkani.io>
COPY scripts/* /usr/local/bin/ COPY scripts/* /usr/local/bin/
RUN apk add --virtual .build-deps curl && \ RUN apk update && apk upgrade && apk add --virtual .build-deps curl && \
export ORAS_VERSION=$(wget -qO - "https://api.github.com/repos/oras-project/oras/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && \ export ORAS_VERSION=$(wget -qO - "https://api.github.com/repos/oras-project/oras/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && \
curl -LO "https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz" && \ curl -LO "https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz" && \
mkdir -p oras-install/ && \ mkdir -p oras-install/ && \
@ -17,4 +17,5 @@ RUN apk add --virtual .build-deps curl && \
tar -zxf trivy_${TRIVY_VERSION}_*.tar.gz -C trivy-install/ && \ tar -zxf trivy_${TRIVY_VERSION}_*.tar.gz -C trivy-install/ && \
mv trivy-install /opt/trivy && \ mv trivy-install /opt/trivy && \
ln -s /opt/trivy/trivy /usr/local/bin/trivy && \ ln -s /opt/trivy/trivy /usr/local/bin/trivy && \
apk del .build-deps apk del .build-deps && \
rm -vrf /var/cache/apk/*