Skip to content

Commit

Permalink
jobs/build-arch: Fix copy over of fedmsg.toml
Browse files Browse the repository at this point in the history
The way kube secrets work is the files are usually symlinks to another
file in the same directory. Let's sync the whole directory so we get
the target file as well.

Also changed the sync definition for the key to be more succinct.
  • Loading branch information
dustymabe committed Jul 22, 2022
1 parent 409b1eb commit f233706
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions jobs/build-arch.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,10 @@ lock(resource: "build-${params.STREAM}-${params.ARCH}", extra: [[resource: "rele
if [ -f /etc/fedora-messaging-cfg/fedmsg.toml ]; then
cosa shell -- sudo install -d -D -o builder -g builder --mode 777 \
/etc/fedora-messaging-cfg
cosa remote-session sync \
/etc/fedora-messaging-cfg/fedmsg.toml \
:/etc/fedora-messaging-cfg/fedmsg.toml
cosa remote-session sync {,:}/etc/fedora-messaging-cfg/
cosa shell -- sudo install -d -D -o builder -g builder --mode 777 \
/run/kubernetes/secrets/fedora-messaging-coreos-key
cosa remote-session sync \
/run/kubernetes/secrets/fedora-messaging-coreos-key/ \
:/run/kubernetes/secrets/fedora-messaging-coreos-key/
cosa remote-session sync {,:}/run/kubernetes/secrets/fedora-messaging-coreos-key/
fi

cosa init --force --branch ${ref} --commit=${fcos_config_commit} ${src_config_url}
Expand Down

0 comments on commit f233706

Please sign in to comment.