Skip to content

Commit 1ff5dd4

Browse files
committed
Properly propagate secrets down to user creation script
1 parent ed7171c commit 1ff5dd4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

devops/containers/ubuntu2204_base.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ USER root
88
COPY scripts/install_build_tools.sh /install.sh
99
RUN /install.sh
1010

11-
COPY scripts/setup-sycl-user.sh /user-setup.sh
12-
RUN /user-setup.sh
11+
COPY scripts/create-sycl-user.sh /user-setup.sh
12+
RUN --mount=type=secret,id=sycl_passwd /user-setup.sh
1313

1414
COPY actions/cached_checkout /actions/cached_checkout
1515
COPY actions/cleanup /actions/cleanup

devops/containers/ubuntu2204_build.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ RUN apt update && apt install -yqq rocm-dev && \
3030
apt-get clean && \
3131
rm -rf /var/lib/apt/lists/*
3232

33-
COPY scripts/setup-sycl-user.sh /user-setup.sh
34-
RUN /user-setup.sh
33+
COPY scripts/create-sycl-user.sh /user-setup.sh
34+
RUN --mount=type=secret,id=sycl_passwd /user-setup.sh
3535

3636
COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh
3737

devops/containers/ubuntu2404_base.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY scripts/install_build_tools.sh /install.sh
99
RUN /install.sh
1010

1111
COPY scripts/create-sycl-user.sh /user-setup.sh
12-
RUN /user-setup.sh
12+
RUN --mount=type=secret,id=sycl_passwd /user-setup.sh
1313

1414
COPY actions/cached_checkout /actions/cached_checkout
1515
COPY actions/cleanup /actions/cleanup

0 commit comments

Comments
 (0)