diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f3aa59eba5bdaa3fb120cc031aab34b013cf39e6..ef0fcd701df06a43c775c11413c768176095656b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,7 +56,7 @@ build-aur-docker: - cd docker && docker build --cache-from $CONTAINER_IMAGE/aur:$CONTAINER_TAG -f Dockerfile.arch -t $CONTAINER_IMAGE/aur:$CONTAINER_TAG . - docker push $CONTAINER_IMAGE/aur:$CONTAINER_TAG -build-ubuntu: +build-snap: image: registry.gitlab.e.foundation/e/devices/easy-installer:stable stage: build variables: @@ -69,6 +69,20 @@ build-ubuntu: paths: - easy-installer*.snap +build-linux-x64: + image: registry.gitlab.e.foundation/e/devices/easy-installer:stable + stage: build + variables: + GIT_SUBMODULE_STRATEGY: recursive + script: + - ./gradlew dist + artifacts: + name: "easy-installer-$CI_COMMIT_TAG-linux_x64" + paths: + - build/image/easy-installer-linux-x64/ + rules: + - if: $CI_COMMIT_TAG + build-windows: image: registry.gitlab.e.foundation/e/devices/easy-installer:stable stage: build @@ -180,3 +194,14 @@ publish-aur: rules: - if: '$CI_COMMIT_TAG' when: manual + +publish-linux-x64: + image: curlimages/curl:latest + stage: publish + variables: + PKG_NAME: easy-installer-$CI_COMMIT_TAG-linux_x64.zip + script: + - 'curl "$CI_JOB_URL/artifacts/$CI_COMMIT_TAG/browse?job=build-linux-x64" --output "$PKG_NAME"' + - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "$PKG_NAME" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/easy-installer/$CI_COMMIT_TAG/$PKG_NAME"' + rules: + - if: '$CI_COMMIT_TAG'