Commit 1d2ac89e authored by probal31's avatar probal31
Browse files

Remove cached appimages before build start

parent 2b9b1855
Pipeline #4751 canceled with stages
in 17 minutes and 27 seconds
......@@ -15,7 +15,19 @@ cache:
- build/kquickimageeditor*
- ./*.AppImage
.configure_system_script: &configure_system_script
.init-build-script: &init-build-script
- rm -rf ./build/
- rm -rf *.AppImage
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
.build-mauiapps-init-script: &build-mauiapps-init-script
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- export BRANCH=$([ -z $BRANCH_KIRIGAMI ] && echo "master" || echo $BRANCH_KIRIGAMI)
- ./kirigami/build.sh
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- ./mauikit/build.sh
.configure_deploy_script: &configure_deploy_script
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- apt-get update
- apt-get --yes --force-yes install wget
......@@ -28,6 +40,7 @@ cache:
fi
- chmod +x /usr/bin/mc
- mc config host add nx $NITRUX_STORAGE_URL $NITRUX_STORAGE_ACCESS_KEY $NITRUX_STORAGE_SECRET_KEY
.upload_artifacts_script: &upload_artifacts_script
- du -h *.AppImage || true
- du -h *.deb || true
......@@ -85,21 +98,13 @@ cache:
fi
.build-mauiapps-init-script: &build-mauiapps-init-script
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- export BRANCH=$([ -z $BRANCH_KIRIGAMI ] && echo "master" || echo $BRANCH_KIRIGAMI)
- ./kirigami/build.sh
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- ./mauikit/build.sh
# Build mauikit for amd64
build-mauikit-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build-mauikit
before_script:
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- *init-build-script
script:
- rm -rf ./build/
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_KIRIGAMI ] && echo "master" || echo $BRANCH_KIRIGAMI)
- ./kirigami/build.sh
......@@ -114,9 +119,8 @@ build-mauikit-arm64:
- arm64
- selfhosted
before_script:
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- *init-build-script
script:
- rm -rf ./build/
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_KIRIGAMI ] && echo "master" || echo $BRANCH_KIRIGAMI)
- ./kirigami/build.sh
......@@ -131,9 +135,8 @@ build-mauikit-armhf:
- armhf
- selfhosted
before_script:
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- *init-build-script
script:
- rm -rf ./build/
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_KIRIGAMI ] && echo "master" || echo $BRANCH_KIRIGAMI)
- ./kirigami/build.sh
......@@ -504,7 +507,7 @@ upload-mauiapps-amd64:
stage: deploy
needs: [build-index-amd64, build-nota-amd64, build-buho-amd64, build-vvave-amd64, build-pix-amd64, build-clip-amd64, build-shelf-amd64, build-communicator-amd64, build-station-amd64]
before_script:
- *configure_system_script
- *configure_deploy_script
script:
- echo "Uploading artifacts to server"
after_script:
......@@ -515,7 +518,7 @@ upload-mauiapps-arm64:
stage: deploy
needs: [build-index-arm64, build-nota-arm64, build-buho-arm64, build-vvave-arm64, build-pix-arm64, build-clip-arm64, build-shelf-arm64, build-communicator-arm64, build-station-arm64]
before_script:
- *configure_system_script
- *configure_deploy_script
script:
- echo "Uploading artifacts to server"
after_script:
......@@ -526,7 +529,7 @@ upload-mauiapps-armhf:
stage: deploy
needs: [build-index-armhf, build-nota-armhf, build-buho-armhf, build-vvave-armhf, build-pix-armhf, build-clip-armhf, build-shelf-armhf, build-communicator-armhf, build-station-armhf]
before_script:
- *configure_system_script
- *configure_deploy_script
script:
- echo "Uploading artifacts to server"
after_script:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment