Commit a02965e 1 parent 8dcbf85 commit a02965e Copy full SHA for a02965e
File tree 3 files changed +8
-11
lines changed
3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,10 @@ COPY ${RUNNERPATCH} /tmp/runner.patch
14
14
RUN cd /tmp && \
15
15
git clone -q ${RUNNERREPO} && \
16
16
cd runner && \
17
- git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) -b build && \
18
- git apply /tmp/runner.patch && \
19
- sed -i'' -e 's/"version": "8[^"]*"/"version": "'${SDK_VERSION}'"/' src/global.json && \
20
- sed -i'' -e 's/"version": "8[^"]*"/"version": "'${SDK_VERSION}'"/' .devcontainer/devcontainer.json && \
21
- sed -i'' -e 's/DOTNETSDK_VERSION="8[^"]*"/DOTNETSDK_VERSION="'${SDK_VERSION}'"/' src/dev.sh
17
+ git checkout main -b build && \
18
+ # git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) -b build && \
19
+ sed -i'' -e /version/s/8......\"$/${SDK}.0.100\"/ src/global.json && \
20
+ git apply /tmp/runner.patch
22
21
23
22
RUN cd /tmp/runner/src && \
24
23
./dev.sh layout && \
Original file line number Diff line number Diff line change 1
- FROM ubuntu:22.04
1
+ FROM ubuntu:24.10
2
2
3
3
ARG RUNNERREPO="https://github.com/actions/runner" RUNNERPATCH SDK_VERSION ARCH
4
4
5
5
ENV DEBIAN_FRONTEND=noninteractive
6
6
7
7
RUN apt-get -qq update -y && \
8
- apt-get -qq -y install wget git sudo alien curl && \
8
+ apt-get -qq -y install wget git sudo curl dotnet-sdk-8.0 && \
9
9
apt autoclean
10
10
11
- RUN apt-get -qq -y install dotnet-sdk-8.0 && \
12
- SDK_VERSION=`dotnet --version` && \
13
- echo "Using SDK - ${SDK_VERSION}"
11
+ RUN echo "Using SDK - `dotnet --version`"
14
12
15
13
ADD ${RUNNERPATCH} /tmp/runner.patch
16
14
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ install_runner() {
92
92
93
93
cleanup () {
94
94
rm -rf /home/ubuntu/build-image.sh /home/ubuntu/runner-sdk-8.patch \
95
- /tmp/runner /tmp/preseed-yaml
95
+ /tmp/runner /tmp/preseed-yaml /home/ubuntu/.nuget
96
96
}
97
97
98
98
run () {
You can’t perform that action at this time.
0 commit comments