Skip to content
Snippets Groups Projects
Verified Commit ad173d7f authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

cicd: fix the packaging step

parent 12926916
No related branches found
No related tags found
No related merge requests found
Pipeline #71379 failed
......@@ -19,21 +19,16 @@ create-packages:
- echo ${QDS_CI_ARTIFACTS_PATH}; ls -l ${QDS_CI_ARTIFACTS_PATH}
- cd ${QDS_CI_ARTIFACTS_PATH}
- |
for platform in $(ls); do
echo "Creating packages for platform $platform"
cd "$platform"
for arch in $(ls); do
echo "Running for $platform-$arch. Compressing..."
# app folder contains the apk for the app
# test folder contains the apk for the tests
# we only need to compress the app folder
cd "$arch/app"
tar -czf "$platform-$arch.tar.gz" *
echo "Uploading $platform-$arch.tar.gz to GitLab Package Registry"
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${platform}-${arch}.tar.gz" ${QDS_PACKAGE_URL}/qt-ui-viewer-${CI_COMMIT_TAG}-qt${QDS_CI_QT_VERSION}-${platform}-${arch}.tar.gz
cd ..
done
cd ..
for arch in $(ls); do
echo "Running for $platform-$arch. Compressing..."
# app folder contains the apk for the app
# test folder contains the apk for the tests
# we only need to compress the app folder
cd "$arch/app"
tar -czf "$platform-$arch.tar.gz" *
echo "Uploading $platform-$arch.tar.gz to GitLab Package Registry"
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${platform}-${arch}.tar.gz" ${QDS_PACKAGE_URL}/qt-ui-viewer-${CI_COMMIT_TAG}-qt${QDS_CI_QT_VERSION}-${platform}-${arch}.tar.gz
cd ..
done
artifacts:
name: qt-ui-viewer-${CI_JOB_ID}-qt${QDS_CI_QT_VERSION}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment