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

cicd: fix the packaging step

parent ad173d7f
No related branches found
No related tags found
No related merge requests found
Pipeline #71381 failed
[submodule "3rdparty/zxing-cpp"] [submodule "3rdparty/zxing-cpp"]
path = 3rdparty/zxing-cpp path = 3rdparty/zxing-cpp
url = https://github.com/zxing-cpp/zxing-cpp.git url = https://github.com/zxing-cpp/zxing-cpp.git
[submodule "3rdparty/qtquickdesigner-components"] [submodule "3rdparty/qtquickdesigner-components"]
path = 3rdparty/qtquickdesigner-components path = 3rdparty/qtquickdesigner-components
url = https://codereview.qt-project.org/qt-labs/qtquickdesigner-components url = https://codereview.qt-project.org/qt-labs/qtquickdesigner-components
...@@ -17,16 +17,17 @@ create-packages: ...@@ -17,16 +17,17 @@ create-packages:
script: script:
- apk add tar curl - apk add tar curl
- echo ${QDS_CI_ARTIFACTS_PATH}; ls -l ${QDS_CI_ARTIFACTS_PATH} - echo ${QDS_CI_ARTIFACTS_PATH}; ls -l ${QDS_CI_ARTIFACTS_PATH}
- ls -l ${QDS_CI_ARTIFACTS_PATH}/*
- cd ${QDS_CI_ARTIFACTS_PATH} - cd ${QDS_CI_ARTIFACTS_PATH}
- | - |
for arch in $(ls); do for arch in $(ls); do
echo "Running for $platform-$arch. Compressing..." echo "Running for ${arch}. Compressing..."
# app folder contains the apk for the app # app folder contains the apk for the app
# test folder contains the apk for the tests # test folder contains the apk for the tests
# we only need to compress the app folder # we only need to compress the app folder
cd "$arch/app" cd "${arch}/app"
tar -czf "$platform-$arch.tar.gz" * tar -czf "${arch}.tar.gz" *
echo "Uploading $platform-$arch.tar.gz to GitLab Package Registry" echo "Uploading ${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 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 .. cd ..
done done
......
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