Skip to content

Commit 38c08eb

Browse files
committed
fix: fix build
1 parent 1d59f1d commit 38c08eb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/github-docker-registry-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,4 @@ jobs:
223223
context: ./dockerfiles/cpp
224224
platforms: linux/amd64, linux/aarch64
225225
push: true
226-
tags: ghcr.io/${{ env.REPO_NAME }}/jenkinsci-tutorials:cpp_${{ env.BRANCH }}
226+
tags: ghcr.io/${{ env.REPO_NAME }}/jenkinsci-tutorials:dotnet_${{ env.BRANCH }}

dockerfiles/dotnet/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM jenkins/ssh-agent:6.10.0 as ssh-agent
1+
FROM jenkins/ssh-agent:6.10.0 AS ssh-agent
22

3-
# ca-certificates because curl uses certificates from ca-certificates
4-
RUN apt-get update && apt-get install -y --no-install-recommends libc6 libgcc1 libgssapi-krb5-2 libicu70 libssl3 libstdc++6 zlib1g && apt-get clean && \
3+
# install dotnet dependencies
4+
RUN apt-get update && apt-get install -y --no-install-recommends libc6 libgcc1 libgssapi-krb5-2 libicu72 libssl3 libstdc++6 zlib1g wget && apt-get clean && \
55
rm -rf /var/lib/apt/lists/*
66

77
# Now time to install dotnet
@@ -12,9 +12,9 @@ ARG DOTNET_VERSION=8.0
1212
SHELL ["/bin/bash", "-eo", "pipefail", "-c"]
1313

1414
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && \
15-
./dotnet-install.sh --channel ${DOTNET_VERSION}}
15+
./dotnet-install.sh --channel ${DOTNET_VERSION} --install-dir /usr/local/dotnet
1616

17-
ENV DOTNET_ROOT=$HOME/.dotnet
17+
ENV DOTNET_ROOT=/usr/local/dotnet
1818
ENV PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
1919

2020
RUN echo "PATH=${PATH}" >> /etc/environment && chown -R jenkins:jenkins "${JENKINS_AGENT_HOME}" && \

0 commit comments

Comments
 (0)