Skip to content

Commit

Permalink
Fix workflows path in scripts
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Dec 2, 2024
1 parent 707c9a2 commit 04a51b7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions scripts/build_application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ APPLICATION_ID=$4
JDK_IMAGE=$5
MVN_OPTS=$6

cd "${WORKDIR}"/"${WORKFLOW_ID}"/"${APPLICATION_ID}" || exit
${CONTAINER_ENGINE} run --rm -v "${WORKDIR}":/workdir -e MVN_OPTS="${MVN_OPTS}" -w /workdir/"${WORKFLOW_ID}"/"${APPLICATION_ID}" \
cd "${WORKDIR}"/workflows/"${WORKFLOW_ID}"/"${APPLICATION_ID}" || exit
${CONTAINER_ENGINE} run --rm -v "${WORKDIR}":/workdir -e MVN_OPTS="${MVN_OPTS}" -w /workdir/workflows/"${WORKFLOW_ID}"/"${APPLICATION_ID}" \
--user root "${JDK_IMAGE}" mvn "${MVN_OPTS}" clean package -DskipTests

4 changes: 2 additions & 2 deletions scripts/build_m2kfunc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MVN_OPTS=$6

VERSION="2.0.0"

cd "${WORKDIR}"/"${WORKFLOW_ID}"/"${APPLICATION_ID}"/move2kubeAPI || exit
cd "${WORKDIR}"/workflows/"${WORKFLOW_ID}"/"${APPLICATION_ID}"/move2kubeAPI || exit
curl https://raw.githubusercontent.com/konveyor/move2kube-api/main/assets/openapi.json -o openapi.json

rm -rf java-client
Expand All @@ -21,5 +21,5 @@ ${CONTAINER_ENGINE} run --rm -v "${PWD}":/tmp -e GENERATE_PERMISSIONS=true opena
--group-id dev.parodos --artifact-id move2kube --artifact-version v${VERSION} \
--library apache-httpclient

${CONTAINER_ENGINE} run --rm -v "${WORKDIR}":/workdir -e MVN_OPTS="${MVN_OPTS}" -w /workdir/"${WORKFLOW_ID}" \
${CONTAINER_ENGINE} run --rm -v "${WORKDIR}":/workdir -e MVN_OPTS="${MVN_OPTS}" -w /workdir/workflows/"${WORKFLOW_ID}" \
"${JDK_IMAGE}" mvn "${MVN_OPTS}" -q clean install -DskipTests
2 changes: 1 addition & 1 deletion scripts/create_automated_m2k_kfunc_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ git switch -c "${WORKFLOW_ID}"-autopr-"${TIMESTAMP}"

./hack/bump_chart_version.sh "${WORKFLOW_ID}" --bump-tag-version
mkdir -p charts/"${WORKFLOW_ID}"/templates
cp "${WORKDIR}"/"${WORKFLOW_ID}"/manifests/* charts/"${WORKFLOW_ID}"/templates
cp "${WORKDIR}"/workflows/"${WORKFLOW_ID}"/manifests/* charts/"${WORKFLOW_ID}"/templates
yq --inplace '.kfunction.image="quay.io/orchestrator/serverless-workflow-m2k-kfunc:'"${GITHUB_SHA}"'"' charts/move2kube/values.yaml
git add -A

Expand Down
2 changes: 1 addition & 1 deletion scripts/create_automated_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ git switch -c "${WORKFLOW_ID}"-autopr-"${TIMESTAMP}"

./hack/bump_chart_version.sh "${WORKFLOW_ID}" --bump-tag-version
mkdir -p charts/"${WORKFLOW_ID}"/templates
cp "${WORKDIR}"/"${WORKFLOW_ID}"/manifests/* charts/"${WORKFLOW_ID}"/templates
cp "${WORKDIR}"/workflows/"${WORKFLOW_ID}"/manifests/* charts/"${WORKFLOW_ID}"/templates
git add -A

git commit -m "(${WORKFLOW_ID}) Automated PR"
Expand Down
2 changes: 1 addition & 1 deletion scripts/create_or_update_automated_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ for pr in $prs; do
if [ "${APPLICATION_UPDATE_COMMAND}" != "" ]; then
eval "${APPLICATION_UPDATE_COMMAND}" || exit 1
else
cp "${WORKDIR}"/"${WORKFLOW_ID}"/manifests/* charts/"${WORKFLOW_ID}"/templates || exit 1
cp "${WORKDIR}"/workflows/"${WORKFLOW_ID}"/manifests/* charts/"${WORKFLOW_ID}"/templates || exit 1
fi
git add -A

Expand Down

0 comments on commit 04a51b7

Please sign in to comment.