Skip to content
Snippets Groups Projects
Commit f31e3882 authored by Daniel Vonk's avatar Daniel Vonk
Browse files

Make a Link in the Release Item

parent 6d7a346f
No related branches found
Tags v1.9.2
1 merge request!34Make a Link in the Release Item
Pipeline #413602 passed with warnings
......@@ -89,18 +89,21 @@ appimage-cpu-job: # Create an AppImage for Sassena (CPU only), upload it to the
stage: deploy
rules:
- if: $CI_COMMIT_TAG
when: manual
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
assets:
links:
- name: 'Sassena AppImage'
url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${PACKAGE_NAME}/${IMAGE_VERSION}/Sassena_CPU.AppImage'
image: $CI_REGISTRY/daphne4nfdi/sassena:latest
script:
- git submodule update --init --recursive
- cmake --preset=rel-cpu -DCMAKE_INSTALL_PREFIX=/usr
- cmake --preset=rel-cpu -DCMAKE_INSTALL_PREFIX=/usr # preset must be set according to AppImage documentation
- cd build-rel-cpu
- DESTDIR=AppDir ninja install -j3
- linuxdeploy --appimage-extract-and-run --desktop-file AppDir/usr/share/applications/sassena_cpu.desktop --appdir AppDir --output appimage
- 'curl --fail-with-body --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "Sassena_(CPU)-x86_64.AppImage" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${PACKAGE_NAME}/${IMAGE_VERSION}/Sassena_CPU.AppImage"'
- linuxdeploy --appimage-extract-and-run --desktop-file AppDir/usr/share/applications/sassena_cpu.desktop --appdir AppDir --output appimage # create the AppImage using linuxdeploy
- 'curl --fail-with-body --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "Sassena_(CPU)-x86_64.AppImage" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${PACKAGE_NAME}/${IMAGE_VERSION}/Sassena_CPU.AppImage"' # upload it to the server
artifacts:
paths:
- "build-rel-cpu/Sassena_(CPU)-x86_64.AppImage"
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