Skip to content

Commit b5ae51f

Browse files
committed
Apparently rpm-ostree can't be used in a build image
1 parent 071600d commit b5ae51f

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

‎build_files/build.sh‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@ set -ouex pipefail
66
cp -avf "/ctx/system_files"/. /
77

88
# Add 1Password repo to install 1Password CLI and Desktop App
9-
curl -fsSL https://raw.githubusercontent.com/1Password/1password-cli/main/1password.repo -o /etc/yum.repos.d/1password.repo
9+
rpm --import https://downloads.1password.com/linux/keys/1password.asc
10+
11+
cat <<EOF > /etc/yum.repos.d/1password.repo
12+
[onepassword]
13+
name=1Password Stable Channel
14+
baseurl=https://downloads.1password.com/linux/yum/stable/\$basearch
15+
enabled=1
16+
gpgcheck=1
17+
repo_gpgcheck=1
18+
gpgkey=https://downloads.1password.com/linux/keys/1password.asc
19+
EOF
20+
1021

1122
### Install packages
1223

@@ -16,8 +27,7 @@ curl -fsSL https://raw.githubusercontent.com/1Password/1password-cli/main/1passw
1627
# https://mirrors.rpmfusion.org/mirrorlist?path=free/fedora/updates/43/x86_64/repoview/index.html&protocol=https&redirect=1
1728

1829
# this installs a package from fedora repos
19-
dnf5 install -y tmux
20-
rpm-ostree install -y 1password 1password-cli
30+
dnf5 install -y tmux 1password 1password-cli
2131
# Use a COPR Example:
2232
#
2333
# dnf5 -y copr enable ublue-os/staging

0 commit comments

Comments
 (0)