Commit c59571c1 authored by ab0027's avatar ab0027 💬

Disable pix arm64 builds and fix pushing artifacts

parent 2c5f94ac
Pipeline #2283 passed with stages
in 41 minutes and 32 seconds
variables:
BUILD_TYPE: "devel"
GIT_CHECKOUT: "false"
stages:
- .pre
......@@ -7,24 +8,68 @@ stages:
- builds-arm
- .post
cache:
paths:
- ./build
before_script:
- cat ubports-pubkey.gpg | apt-key add -
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- apt-get -yy update && apt-get -yy install wget
- wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /tmp/mc
- chmod +x /tmp/mc
- /tmp/mc config host add nx $NITRUX_STORAGE_URL $NITRUX_STORAGE_ACCESS_KEY $NITRUX_STORAGE_SECRET_KEY
after_script:
- du -h *.AppImage || true
- du -h *.deb || true
- du -h *.apk || true
- echo "Pushing Artifacts"
- export BUCKET_DATE=$(date +'%Y-%m-%d')
- if [ $BUILD_TYPE = 'nightly' -o $BUILD_TYPE = 'devel' ]; then
/tmp/mc mb nx/maui/$BUILD_TYPE/$BUCKET_DATE/;
/tmp/mc cp *amd64*.AppImage nx/maui/$BUILD_TYPE/$BUCKET_DATE/ || true;
/tmp/mc cp *arm64*.AppImage nx/maui/$BUILD_TYPE/$BUCKET_DATE/ || true;
/tmp/mc cp *amd64*.deb nx/maui/$BUILD_TYPE/$BUCKET_DATE/ || true;
/tmp/mc cp *arm64*.deb nx/maui/$BUILD_TYPE/$BUCKET_DATE/ || true;
/tmp/mc cp *.apk nx/maui/$BUILD_TYPE/$BUCKET_DATE/ || true;
echo $BUCKET_DATE | /tmp/mc pipe nx/maui/$BUILD_TYPE/LATEST;
fi
- if [ $BUILD_TYPE = 'stable' ]; then
/tmp/mc mb nx/maui/$BUILD_TYPE/mauikit/$BRANCH_MAUIKIT/;
/tmp/mc mb nx/maui/$BUILD_TYPE/index/$BRANCH_INDEX/;
/tmp/mc mb nx/maui/$BUILD_TYPE/nota/$BRANCH_NOTA/;
/tmp/mc mb nx/maui/$BUILD_TYPE/buho/$BRANCH_BUHO/;
/tmp/mc mb nx/maui/$BUILD_TYPE/vvave/$BRANCH_VVAVE/;
/tmp/mc mb nx/maui/$BUILD_TYPE/pix/$BRANCH_PIX/;
/tmp/mc mb nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/;
/tmp/mc mb nx/maui/$BUILD_TYPE/contacts/$BRANCH_CONTACTS/;
echo $BRANCH_MAUIKIT | /tmp/mc pipe nx/maui/$BUILD_TYPE/mauikit/LATEST;
echo $BRANCH_INDEX | /tmp/mc pipe nx/maui/$BUILD_TYPE/index/LATEST;
echo $BRANCH_NOTA | /tmp/mc pipe nx/maui/$BUILD_TYPE/nota/LATEST;
echo $BRANCH_BUHO | /tmp/mc pipe nx/maui/$BUILD_TYPE/buho/LATEST;
echo $BRANCH_VVAVE | /tmp/mc pipe nx/maui/$BUILD_TYPE/vvave/LATEST;
echo $BRANCH_PIX | /tmp/mc pipe nx/maui/$BUILD_TYPE/pix/LATEST;
echo $BRANCH_STATION | /tmp/mc pipe nx/maui/$BUILD_TYPE/station/LATEST;
echo $BRANCH_CONTACTS | /tmp/mc pipe nx/maui/$BUILD_TYPE/contacts/LATEST;
/tmp/mc cp mauikit*amd64*.deb nx/maui/$BUILD_TYPE/mauikit/$BRANCH_MAUIKIT/;
/tmp/mc cp index*.AppImage nx/maui/$BUILD_TYPE/index/$BRANCH_INDEX/;
/tmp/mc cp index*amd64*.deb nx/maui/$BUILD_TYPE/index/$BRANCH_INDEX/;
/tmp/mc cp nota*.AppImage nx/maui/$BUILD_TYPE/nota/$BRANCH_NOTA/;
/tmp/mc cp nota*amd64*.deb nx/maui/$BUILD_TYPE/nota/$BRANCH_NOTA/;
/tmp/mc cp buho*.AppImage nx/maui/$BUILD_TYPE/buho/$BRANCH_BUHO/;
/tmp/mc cp buho*amd64*.deb nx/maui/$BUILD_TYPE/buho/$BRANCH_BUHO/;
/tmp/mc cp vvave*.AppImage nx/maui/$BUILD_TYPE/vvave/$BRANCH_VVAVE/;
/tmp/mc cp vvave*amd64*.deb nx/maui/$BUILD_TYPE/vvave/$BRANCH_VVAVE/;
/tmp/mc cp pix*.AppImage nx/maui/$BUILD_TYPE/pix/$BRANCH_PIX/;
/tmp/mc cp pix*amd64*.deb nx/maui/$BUILD_TYPE/pix/$BRANCH_PIX/;
/tmp/mc cp station*.AppImage nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/;
/tmp/mc cp station*amd64*.deb nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/;
/tmp/mc cp contacts*.AppImage nx/maui/$BUILD_TYPE/contacts/$BRANCH_CONTACTS/;
/tmp/mc cp contacts*amd64*.deb nx/maui/$BUILD_TYPE/contacts/$BRANCH_CONTACTS/;
fi
### Grouped builds together to reduce build time
### Ungrouped single job per build was last available on commit 00ed10f48abbe0032e67b9b8ea8ba87342b69b35
###
# Stage builds-amd64
###
###
builds-amd64:
image: mauikit/ubuntu-18.04-amd64
stage: builds-amd64
......@@ -87,58 +132,3 @@ builds-arm64:
###
# END Stage builds-arm
###
push-artifacts:
image: mauikit/ubuntu-18.04-amd64
stage: .post
allow_failure: true
when: always
script:
- apt-get -yy update && apt-get -yy install wget
- wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /tmp/mc
- chmod +x /tmp/mc
- /tmp/mc config host add nx $NITRUX_STORAGE_URL $NITRUX_STORAGE_ACCESS_KEY $NITRUX_STORAGE_SECRET_KEY
- export DATE=$(date +'%Y-%m-%d')
- if [ $BUILD_TYPE = 'nightly' -o $BUILD_TYPE = 'devel' ]; then
/tmp/mc mb nx/maui/$BUILD_TYPE/$DATE/;
/tmp/mc cp *amd64*.AppImage nx/maui/$BUILD_TYPE/$DATE/ || true;
/tmp/mc cp *arm64*.AppImage nx/maui/$BUILD_TYPE/$DATE/ || true;
/tmp/mc cp *amd64*.deb nx/maui/$BUILD_TYPE/$DATE/ || true;
/tmp/mc cp *arm64*.deb nx/maui/$BUILD_TYPE/$DATE/ || true;
/tmp/mc cp *.apk nx/maui/$BUILD_TYPE/$DATE/ || true;
echo $DATE | /tmp/mc pipe nx/maui/$BUILD_TYPE/LATEST;
fi
- if [ $BUILD_TYPE = 'stable' ]; then
/tmp/mc mb nx/maui/$BUILD_TYPE/mauikit/$BRANCH_MAUIKIT/;
/tmp/mc mb nx/maui/$BUILD_TYPE/index/$BRANCH_INDEX/;
/tmp/mc mb nx/maui/$BUILD_TYPE/nota/$BRANCH_NOTA/;
/tmp/mc mb nx/maui/$BUILD_TYPE/buho/$BRANCH_BUHO/;
/tmp/mc mb nx/maui/$BUILD_TYPE/vvave/$BRANCH_VVAVE/;
/tmp/mc mb nx/maui/$BUILD_TYPE/pix/$BRANCH_PIX/;
/tmp/mc mb nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/;
/tmp/mc mb nx/maui/$BUILD_TYPE/contacts/$BRANCH_CONTACTS/;
echo $BRANCH_MAUIKIT | /tmp/mc pipe nx/maui/$BUILD_TYPE/mauikit/LATEST;
echo $BRANCH_INDEX | /tmp/mc pipe nx/maui/$BUILD_TYPE/index/LATEST;
echo $BRANCH_NOTA | /tmp/mc pipe nx/maui/$BUILD_TYPE/nota/LATEST;
echo $BRANCH_BUHO | /tmp/mc pipe nx/maui/$BUILD_TYPE/buho/LATEST;
echo $BRANCH_VVAVE | /tmp/mc pipe nx/maui/$BUILD_TYPE/vvave/LATEST;
echo $BRANCH_PIX | /tmp/mc pipe nx/maui/$BUILD_TYPE/pix/LATEST;
echo $BRANCH_STATION | /tmp/mc pipe nx/maui/$BUILD_TYPE/station/LATEST;
echo $BRANCH_CONTACTS | /tmp/mc pipe nx/maui/$BUILD_TYPE/contacts/LATEST;
/tmp/mc cp mauikit*amd64*.deb nx/maui/$BUILD_TYPE/mauikit/$BRANCH_MAUIKIT/;
/tmp/mc cp index*.AppImage nx/maui/$BUILD_TYPE/index/$BRANCH_INDEX/;
/tmp/mc cp index*amd64*.deb nx/maui/$BUILD_TYPE/index/$BRANCH_INDEX/;
/tmp/mc cp nota*.AppImage nx/maui/$BUILD_TYPE/nota/$BRANCH_NOTA/;
/tmp/mc cp nota*amd64*.deb nx/maui/$BUILD_TYPE/nota/$BRANCH_NOTA/;
/tmp/mc cp buho*.AppImage nx/maui/$BUILD_TYPE/buho/$BRANCH_BUHO/;
/tmp/mc cp buho*amd64*.deb nx/maui/$BUILD_TYPE/buho/$BRANCH_BUHO/;
/tmp/mc cp vvave*.AppImage nx/maui/$BUILD_TYPE/vvave/$BRANCH_VVAVE/;
/tmp/mc cp vvave*amd64*.deb nx/maui/$BUILD_TYPE/vvave/$BRANCH_VVAVE/;
/tmp/mc cp pix*.AppImage nx/maui/$BUILD_TYPE/pix/$BRANCH_PIX/;
/tmp/mc cp pix*amd64*.deb nx/maui/$BUILD_TYPE/pix/$BRANCH_PIX/;
/tmp/mc cp station*.AppImage nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/;
/tmp/mc cp station*amd64*.deb nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/;
/tmp/mc cp contacts*.AppImage nx/maui/$BUILD_TYPE/contacts/$BRANCH_CONTACTS/;
/tmp/mc cp contacts*amd64*.deb nx/maui/$BUILD_TYPE/contacts/$BRANCH_CONTACTS/;
fi
Markdown is supported
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