Skip to content

Commit

Permalink
Merge pull request #20 from gdisdevops/feature/tt/official-cosign-build
Browse files Browse the repository at this point in the history
use official cosign release again
  • Loading branch information
Lerentis authored Aug 4, 2022
2 parents cabf88c + fbf23e8 commit 9c8862c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ TRIVY_VERSION=0.27.1
SONAR_SCANNER_VERSION=4.7.0.2747
INFRACOST_VERSION=v0.9.24
SONOBUOY_VERSION=0.56.6
COSIGN_VERSION=1.10.0
COSIGN_VERSION=1.10.1
SENTRY_CLI_VERSION=2.5.0

## Jenkins JNLP Slave
Expand All @@ -39,5 +39,5 @@ TRIVY_VERSION=0.27.1
SONAR_SCANNER_VERSION=4.7.0.2747
INFRACOST_VERSION=v0.9.24
SONOBUOY_VERSION=0.56.6
COSIGN_VERSION=1.10.0
COSIGN_VERSION=1.10.1
SENTRY_CLI_VERSION=2.5.0
Binary file removed blob/cosign_linux_amd64
Binary file not shown.
Binary file removed blob/cosign_linux_arm64
Binary file not shown.
16 changes: 6 additions & 10 deletions jenkins-inbound-agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ARG TRIVY_VERSION=0.27.1
ARG SONAR_SCANNER_VERSION=4.7.0.2747
ARG INFRACOST_VERSION=v0.9.24
ARG SONOBUOY_VERSION=0.56.6
ARG COSIGN_VERSION=1.9.0
ARG COSIGN_VERSION=1.10.1
ARG SENTRY_CLI_VERSION=2.5.0

RUN set -eux; \
Expand Down Expand Up @@ -160,20 +160,16 @@ RUN set -eux; \
curl -L "${SENTRY_DOWNLOAD_URL}" -o sentry-cli; \
echo "${SENTRY_HASHSUM} sentry-cli" | sha256sum -c; \
mv sentry-cli /usr/local/bin/sentry-cli; \
chmod +x /usr/local/bin/sentry-cli
chmod +x /usr/local/bin/sentry-cli; \

#### install cosign
#curl -L "${COSIGN_DOWNLOAD_URL}" -o cosign.deb; \
# dpkg -i cosign.deb; \
# rm cosign.deb;


COPY --chown=root:root ../blob/* /usr/local/bin/
curl -L "${COSIGN_DOWNLOAD_URL}" -o cosign.deb; \
dpkg -i cosign.deb; \
rm cosign.deb;

RUN mkdir -p /etc/tfenv \
&& git clone --depth 1 https://github.com/tfutils/tfenv.git /etc/tfenv \
&& chown -R jenkins /etc/tfenv \
&& mv "/usr/local/bin/cosign_linux_$(dpkg --print-architecture)" /usr/local/bin/cosign
&& chown -R jenkins /etc/tfenv

USER jenkins
#### install terraform with tfenv and helm diff
Expand Down
15 changes: 6 additions & 9 deletions jenkins-jnlp-slave/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ARG TRIVY_VERSION=0.27.1
ARG SONAR_SCANNER_VERSION=4.7.0.2747
ARG INFRACOST_VERSION=v0.9.24
ARG SONOBUOY_VERSION=0.56.6
ARG COSIGN_VERSION=1.9.0
ARG COSIGN_VERSION=1.10.1
ARG SENTRY_CLI_VERSION=2.5.0

RUN set -eux; \
Expand Down Expand Up @@ -160,19 +160,16 @@ RUN set -eux; \
curl -L "${SENTRY_DOWNLOAD_URL}" -o sentry-cli; \
echo "${SENTRY_HASHSUM} sentry-cli" | sha256sum -c; \
mv sentry-cli /usr/local/bin/sentry-cli; \
chmod +x /usr/local/bin/sentry-cli
chmod +x /usr/local/bin/sentry-cli; \

#### install cosign
#curl -L "${COSIGN_DOWNLOAD_URL}" -o cosign.deb; \
# dpkg -i cosign.deb; \
# rm cosign.deb;

COPY --chown=root:root ../blob/* /usr/local/bin/
curl -L "${COSIGN_DOWNLOAD_URL}" -o cosign.deb; \
dpkg -i cosign.deb; \
rm cosign.deb;

RUN mkdir -p /etc/tfenv \
&& git clone --depth 1 https://github.com/tfutils/tfenv.git /etc/tfenv \
&& chown -R jenkins /etc/tfenv \
&& mv "/usr/local/bin/cosign_linux_$(dpkg --print-architecture)" /usr/local/bin/cosign
&& chown -R jenkins /etc/tfenv

USER jenkins
#### install terraform with tfenv and helm diff
Expand Down

0 comments on commit 9c8862c

Please sign in to comment.