ci(docker): fix ArchLinux image cache (#1554)

This commit is contained in:
ReenigneArcher 2023-08-17 21:49:59 -04:00 committed by GitHub
parent 828c064b2e
commit 5b93265053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
# artifacts: true # artifacts: true
# platforms: linux/amd64 # platforms: linux/amd64
# archlinux does not have an arm64 base image # archlinux does not have an arm64 base image
# no-cache-filters: sunshine-base,artifacts,sunshine # no-cache-filters: artifacts,sunshine
ARG BASE=archlinux ARG BASE=archlinux
ARG TAG=base-devel ARG TAG=base-devel
FROM ${BASE}:${TAG} AS sunshine-base FROM ${BASE}:${TAG} AS sunshine-base
@ -11,7 +11,7 @@ FROM ${BASE}:${TAG} AS sunshine-base
RUN <<_DEPS RUN <<_DEPS
#!/bin/bash #!/bin/bash
set -e set -e
pacman -Syu --disable-download-timeout --noconfirm \ pacman -Syu --disable-download-timeout --needed --noconfirm \
archlinux-keyring archlinux-keyring
_DEPS _DEPS
@ -38,7 +38,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN <<_DEPS RUN <<_DEPS
#!/bin/bash #!/bin/bash
set -e set -e
pacman -Syu --disable-download-timeout --noconfirm \ pacman -Syu --disable-download-timeout --needed --noconfirm \
base-devel \ base-devel \
cmake \ cmake \
cuda \ cuda \
@ -102,7 +102,7 @@ COPY --link --from=artifacts /sunshine.pkg.tar.zst /
RUN <<_INSTALL_SUNSHINE RUN <<_INSTALL_SUNSHINE
#!/bin/bash #!/bin/bash
set -e set -e
pacman -U --disable-download-timeout --noconfirm \ pacman -U --disable-download-timeout --needed --noconfirm \
/sunshine.pkg.tar.zst /sunshine.pkg.tar.zst
_INSTALL_SUNSHINE _INSTALL_SUNSHINE