Skip to content

Commit

Permalink
Fix apt package manager doesn't trust the key of the apt Perforce rep…
Browse files Browse the repository at this point in the history
…ository
  • Loading branch information
thohng committed Feb 26, 2024
1 parent d74d51f commit 6ff4b1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion teamcity-agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ ENV DOTNET_SDK_VERSION31=${DOTNET_SDK_VERSION31} \

COPY --from=build /usr /usr

RUN apt-get update \
RUN curl -s https://package.perforce.com/perforce.pubkey | gpg --dearmor | tee /usr/share/keyrings/perforce.gpg \
&& echo 'deb [signed-by=/usr/share/keyrings/perforce.gpg] https://package.perforce.com/apt/ubuntu focal release' > /etc/apt/sources.list.d/perforce.list \
&& apt-get update \
&& apt-get upgrade -y \
&& ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
&& chmod 755 /usr/share/powershell/pwsh \
Expand Down

0 comments on commit 6ff4b1e

Please sign in to comment.