Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Jan 24, 2025
1 parent 0165ff9 commit ad027c3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ if ! buildah containers --format "{{.ContainerName}}" | grep -q webtopbuilder; t
localhost/webtopbuilder-image
fi

if [ ! -e ${PWD}/webtop5-build/webtop-webapp-$webtop_version.war ]; then
buildah run webtopbuilder sh -c "mkdir -p ~/.m2"
buildah run webtopbuilder sh -c "cp webtop5-build/settings.xml ~/.m2/"
buildah run webtopbuilder sh -c "cd webtop5-build/ && ./prep-sources"
fi
# if [ ! -e ${PWD}/webtop5-build/webtop-webapp-$webtop_version.war ]; then
# buildah run webtopbuilder sh -c "mkdir -p ~/.m2"
# buildah run webtopbuilder sh -c "cp webtop5-build/settings.xml ~/.m2/"
# buildah run webtopbuilder sh -c "cd webtop5-build/ && ./prep-sources"
# fi

if [ ! -e ${PWD}/webtop5-build/ListTimeZones.class ]; then
buildah run webtopbuilder sh -c "cd webtop5-build/ && javac ListTimeZones.java"
fi
# if [ ! -e ${PWD}/webtop5-build/ListTimeZones.class ]; then
# buildah run webtopbuilder sh -c "cd webtop5-build/ && javac ListTimeZones.java"
# fi

if [ ! -e ${PWD}/webtop5-build/WebtopPassEncode.class ]; then
buildah run webtopbuilder sh -c "cd webtop5-build/ && javac WebtopPassEncode.java"
fi
# if [ ! -e ${PWD}/webtop5-build/WebtopPassEncode.class ]; then
# buildah run webtopbuilder sh -c "cd webtop5-build/ && javac WebtopPassEncode.java"
# fi

jcharset_tmp_dir=$(mktemp -d)
cleanup_list+=("${jcharset_tmp_dir}")
Expand All @@ -66,9 +66,9 @@ cleanup_list+=("${pecbridge_tmp_dir}")
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
if [ -n "${GITHUB_TOKEN}" ]; then
echo "Downloading tmce plugin..."
curl -H "Authorization: token $TMCE_TOKEN" -H 'Accept: application/vnd.github.v3.raw' -o $tmce_jar -L \
curl -H "Authorization: token $GITHUB_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"
Expand Down

0 comments on commit ad027c3

Please sign in to comment.