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

cicd: fix the packaging step

parent 571f1a1e
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,7 @@ create-packages: ...@@ -15,8 +15,7 @@ create-packages:
QDS_PACKAGE_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/qt-ui-viewer/${CI_COMMIT_TAG}" QDS_PACKAGE_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/qt-ui-viewer/${CI_COMMIT_TAG}"
GIT_SUBMODULE_STRATEGY: none GIT_SUBMODULE_STRATEGY: none
script: script:
- apk add tar curl bash - apk add tar curl
- bash
- 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}/* - ls -l ${QDS_CI_ARTIFACTS_PATH}/*
- cd ${QDS_CI_ARTIFACTS_PATH} - cd ${QDS_CI_ARTIFACTS_PATH}
...@@ -26,11 +25,12 @@ create-packages: ...@@ -26,11 +25,12 @@ create-packages:
# 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
pushd "${arch}/app" current_dir=$(pwd)
cd "${arch}/app"
tar -czf "${arch}.tar.gz" * tar -czf "${arch}.tar.gz" *
echo "Uploading ${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 "${arch}.tar.gz" ${QDS_PACKAGE_URL}/qt-ui-viewer-${CI_COMMIT_TAG}-qt${QDS_CI_QT_VERSION}-${arch}.tar.gz curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${arch}.tar.gz" ${QDS_PACKAGE_URL}/qt-ui-viewer-${CI_COMMIT_TAG}-qt${QDS_CI_QT_VERSION}-${arch}.tar.gz
popd cd ${current_dir}
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