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: ...@@ -19,21 +19,16 @@ create-packages:
- echo ${QDS_CI_ARTIFACTS_PATH}; ls -l ${QDS_CI_ARTIFACTS_PATH} - echo ${QDS_CI_ARTIFACTS_PATH}; ls -l ${QDS_CI_ARTIFACTS_PATH}
- cd ${QDS_CI_ARTIFACTS_PATH} - cd ${QDS_CI_ARTIFACTS_PATH}
- | - |
for platform in $(ls); do for arch in $(ls); do
echo "Creating packages for platform $platform" echo "Running for $platform-$arch. Compressing..."
cd "$platform" # app folder contains the apk for the app
for arch in $(ls); do # test folder contains the apk for the tests
echo "Running for $platform-$arch. Compressing..." # we only need to compress the app folder
# app folder contains the apk for the app cd "$arch/app"
# test folder contains the apk for the tests tar -czf "$platform-$arch.tar.gz" *
# we only need to compress the app folder echo "Uploading $platform-$arch.tar.gz to GitLab Package Registry"
cd "$arch/app" 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
tar -czf "$platform-$arch.tar.gz" * cd ..
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 ..
done done
artifacts: artifacts:
name: qt-ui-viewer-${CI_JOB_ID}-qt${QDS_CI_QT_VERSION} 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