Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Jan 23, 2025
1 parent b6fafd3 commit 0165ff9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ tar -C "${pecbridge_tmp_dir}" -x -v -z -f pecbridge-*.tar.gz

# Download tmce plugin if GITHUB_TOKEN is set
if [ -n "${TMCE_TOKEN}" ]; then
echo "Downloading tmce plugin..."
curl -H "Authorization: token $TMCE_TOKEN" -H 'Accept: application/vnd.github.v3.raw' -o $tmce_jar -L \
https://api.github.com/repos/nethesis/webtop-tmceplugins/contents/$tmce_jar?ref=master
else
echo "TMCE_TOKEN not set, skipping tmce plugin download"
fi

#Create webtop-webapp container
Expand All @@ -83,7 +86,10 @@ buildah add ${container} ${PWD}/zfaker/wrappers/php /usr/share/webtop/bin/php
buildah add ${container} ${PWD}/zfaker/wrappers/z-push-admin-wapper /usr/share/webtop/bin/z-push-admin-wrapper
buildah add ${container} ${pecbridge_tmp_dir}/pecbridge /usr/share/pecbridge
buildah add ${container} ${PWD}/webapp/ /
ls -l .
echo "checking for tmce: $tmce_jar"
if [ -f $tmce_jar ]; then
echo "Adding tmce plugin $tmce_jar.gpg"
# Encrypt the jar with 'subscription' password using gpg
gpg --batch --yes --passphrase 'subscription' -c $tmce_jar
# Decrypt the jar with 'subscription' password using gpg
Expand Down

0 comments on commit 0165ff9

Please sign in to comment.