File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 1
- FROM busybox:stable-musl as build
1
+ FROM busybox:stable-musl
2
2
3
3
ARG ARCH=amd64
4
4
5
5
COPY ./bin/circleci-agent-${ARCH} /opt/circleci/circleci-agent
6
- RUN ln -s /opt/circleci/circleci-agent /opt/circleci/circleci
6
+ COPY ./runner-init/init.sh /init.sh
7
7
8
- FROM scratch as temp
9
-
10
- COPY --from=build /opt/circleci/circleci-agent /opt/circleci/circleci-agent
11
- COPY --from=build /opt/circleci/circleci /opt/circleci/circleci
12
- COPY --from=build /bin/cp /bin/cp
13
-
14
- FROM scratch
15
-
16
- COPY --from=temp / /
17
-
18
- ENTRYPOINT ["/bin/cp" ]
8
+ ENTRYPOINT ["/init.sh" ]
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ dest=${1:? ' task agent dest must be specified' }
4
+
5
+ cp /opt/circleci/circleci-agent " $dest " /circleci-agent
6
+ ln -s " $dest " /circleci-agent " $dest " /circleci
You can’t perform that action at this time.
0 commit comments