@@ -3,7 +3,7 @@ ARG GO_VERSION=latest
33FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION}-alpine AS go-base
44
55FROM --platform=${BUILDPLATFORM} fedora:43 AS fedora43
6- RUN dnf install -y gnome-keyring kf6-kwallet dbus-daemon
6+ RUN dnf install -y gnome-keyring kf6-kwallet dbus-daemon bash
77COPY --from=go-base /usr/local/go /usr/local/go
88ENV PATH="/usr/local/go/bin:${PATH}"
99RUN useradd -ms /bin/bash user
@@ -12,7 +12,7 @@ WORKDIR /app
1212RUN --mount=type=bind,target=.
1313
1414FROM --platform=${BUILDPLATFORM} ubuntu:24.04 AS ubuntu24
15- RUN apt update && apt install -y --no-install-recommends libglib2.0-bin dbus gnome-keyring kwalletmanager
15+ RUN apt update && apt install -y --no-install-recommends libglib2.0-bin dbus gnome-keyring kwalletmanager libqca-qt5-2-plugins bash
1616COPY --from=go-base /usr/local/go /usr/local/go
1717ENV PATH="/usr/local/go/bin:${PATH}"
1818RUN useradd -ms /bin/bash user
@@ -27,8 +27,7 @@ WORKDIR /app
2727RUN --mount=type=bind,target=. \
2828 --mount=type=cache,target=/go/pkg/mod \
2929 --mount=type=cache,target=/root/.cache/go-build \
30- /app/store/scripts/gnome-keyring \
31- go test -v ./store/keychain/...
30+ bash -c "set -euxo pipefail; /app/store/scripts/gnome-keyring"
3231
3332FROM fedora43 AS fedora-43-kdewallet
3433ENV CGO_ENABLED=0
@@ -37,8 +36,7 @@ WORKDIR /app
3736RUN --mount=type=bind,target=. \
3837 --mount=type=cache,target=/go/pkg/mod \
3938 --mount=type=cache,target=/root/.cache/go-build \
40- /app/store/scripts/kdewallet \
41- go test -v ./store/keychain/...
39+ bash -c "set -euxo pipefail; /app/store/scripts/kdewallet"
4240
4341FROM ubuntu24 AS ubuntu-24-gnome-keyring
4442ENV CGO_ENABLED=0
@@ -47,8 +45,7 @@ WORKDIR /app
4745RUN --mount=type=bind,target=. \
4846 --mount=type=cache,target=/go/pkg/mod \
4947 --mount=type=cache,target=/root/.cache/go-build \
50- /app/store/scripts/gnome-keyring \
51- go test -v ./store/keychain/...
48+ bash -c "set -euxo pipefail; /app/store/scripts/gnome-keyring"
5249
5350FROM ubuntu24 AS ubuntu-24-kdewallet
5451ENV CGO_ENABLED=0
@@ -57,5 +54,4 @@ WORKDIR /app
5754RUN --mount=type=bind,target=. \
5855 --mount=type=cache,target=/go/pkg/mod \
5956 --mount=type=cache,target=/root/.cache/go-build \
60- /app/store/scripts/kdewallet \
61- go test -v ./store/keychain/...
57+ bash -c "set -euxo pipefail; /app/store/scripts/kdewallet"
0 commit comments